Go to the source code of this file.
|
| REG_FIDDLE (Bitmap_tryAllocPixels, 256, 256, false, 3) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Bitmap_tryAllocPixels |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
3 |
|
|
) |
| |
Definition at line 4 of file Bitmap_tryAllocPixels.cpp.
4 {
10 offscreen.scale(.5f, .5f);
11 for (
int x : { 0, 64, 128, 192 } ) {
14 }
15 }
16}
17}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kOpaque_SkAlphaType
pixel is opaque
@ kGray_8_SkColorType
pixel with grayscale level in 8-bit byte
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
sk_sp< SkImage > asImage() const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)