Go to the source code of this file.
|
| REG_FIDDLE (upscale_checkerboard, 512, 512, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
upscale_checkerboard |
, |
|
|
512 |
, |
|
|
512 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file upscale_checkerboard.cpp.
4 {
6 SkPMColor p[] = {0xFFFFFFFF, 0xFF000000, 0xFF000000, 0xFFFFFFFF};
9
13
15 canvas->
scale(20, 20);
17}
18}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void scale(SkScalar sx, SkScalar sy)
SK_API sk_sp< SkImage > RasterFromPixmapCopy(const SkPixmap &pixmap)
static SkImageInfo MakeN32Premul(int width, int height)