9 bitmap.eraseColor(0x00000000);
10 void* baseAddr =
bitmap.getPixels();
12 SkDebugf(
"bitmap.getColor(0, 1) %c= 0x00000000\n",
13 bitmap.getColor(0, 1) == 0x00000000 ?
'=' :
'!');
14 SkDebugf(
"bitmap.getColor(0, 0) %c= 0xFFFFFFFF\n",
15 bitmap.getColor(0, 0) == 0xFFFFFFFF ?
'=' :
'!');
REG_FIDDLE(Bitmap_getPixels, 256, 256, true, 0)
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
static SkImageInfo MakeN32(int width, int height, SkAlphaType at)