OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:premul
(Results
1 - 2
of
2
) sorted by null
/cts/tests/tests/graphics/src/android/graphics/cts/
BitmapFactoryTest.java
421
Bitmap
premul
= BitmapFactory.decodeResource(mRes, R.drawable.premul_data, options);
local
424
assertEquals(
premul
.getConfig(), Bitmap.Config.ARGB_8888);
426
assertTrue(
premul
.getHeight() == 1 && unpremul.getHeight() == 1);
427
assertTrue(
premul
.getWidth() == unpremul.getWidth() &&
429
premul
.getWidth() == DEPREMUL_COLORS.length);
431
// verify pixel data - unpremul should have raw values,
premul
will have rounding errors
432
for (int i = 0; i <
premul
.getWidth(); i++) {
433
assertEquals(
premul
.getPixel(i, 0), DEPREMUL_COLORS[i]);
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
BitmapTest.java
173
int
premul
= Math.round(alpha * comp / 255.f);
local
174
int unpre = Math.round(255.0f *
premul
/ alpha);
Completed in 95 milliseconds