Go to the source code of this file.
|
| REG_FIDDLE (Canvas_readPixels_2, 256, 256, true, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Canvas_readPixels_2 |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Canvas_readPixels_2.cpp.
5 {
7 canvas->
clear(0x8055aaff);
8 uint32_t pixels[1] = { 0 };
11 SkDebugf(
"pixel = %08x\n", pixels[0]);
12}
13}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void clear(SkColor color)
bool readPixels(const SkImageInfo &dstInfo, void *dstPixels, size_t dstRowBytes, int srcX, int srcY)
static SkImageInfo MakeN32Premul(int width, int height)