11 uint16_t* row0 = bitmap16.
getAddr16(0, 0);
12 uint16_t* row1 = bitmap16.
getAddr16(0, 1);
14 SkDebugf(
"addr interval %c= rowBytes\n", interval == bitmap16.
rowBytes() ?
'=' :
'!');
REG_FIDDLE(Bitmap_getAddr16, 256, 256, true, 3)
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kARGB_4444_SkColorType
pixel with 4 bits for alpha, red, green, blue; in 16-bit word
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void allocPixels(const SkImageInfo &info, size_t rowBytes)
int bytesPerPixel() const
bool readPixels(const SkImageInfo &dstInfo, void *dstPixels, size_t dstRowBytes, int srcX, int srcY) const
uint16_t * getAddr16(int x, int y) const
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)