Go to the source code of this file.
|
| REG_FIDDLE (Pixmap_writable_addr_2, 256, 256, true, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Pixmap_writable_addr_2 |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Pixmap_writable_addr_2.cpp.
5 {
11 SkDebugf(
"pixmap.writable_addr() %c= (void *)storage\n",
12 pixmap.writable_addr() == (void *)storage ? '=' : '!');
13 pixmap.erase(0x00000000);
14 *(
SkPMColor*)pixmap.writable_addr(1, 2) = 0xFFFFFFFF;
15 SkDebugf(
"pixmap.getColor(0, 0) %c= 0x00000000\n",
16 pixmap.getColor(0, 0) == 0x00000000 ? '=' : '!');
17 SkDebugf(
"pixmap.getColor(1, 2) %c= 0xFFFFFFFF\n",
18 pixmap.getColor(1, 2) == 0xFFFFFFFF ? '=' : '!');
19}
20}
@ 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)