Go to the source code of this file.
|
| REG_FIDDLE (Bitmap_ComputeIsOpaque, 256, 256, true, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Bitmap_ComputeIsOpaque |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Bitmap_ComputeIsOpaque.cpp.
5 {
9 for (int index = 0; index < 2; ++index) {
11 bitmap.eraseColor(0x00000000);
13 bitmap.eraseColor(0xFFFFFFFF);
16 }
17}
18}
@ kOpaque_SkAlphaType
pixel is opaque
@ 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 bool ComputeIsOpaque(const SkBitmap &bm)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)