Go to the source code of this file.
|
| REG_FIDDLE (Bitmap_allocPixelsFlags, 256, 128, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Bitmap_allocPixelsFlags |
, |
|
|
256 |
, |
|
|
128 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Bitmap_allocPixelsFlags.cpp.
4 {
12 offscreen.drawString(
"!@#$%", 0, 12,
font,
paint);
16}
17}
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
@ kZeroPixels_AllocFlag
zero pixel memory. No effect. This is the default.
void scale(SkScalar sx, SkScalar sy)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
sk_sp< SkTypeface > matchFamilyStyle(const char familyName[], const SkFontStyle &) const
sk_sp< SkFontMgr > fontMgr
font
Font Metadata and Metrics.
static SkImageInfo MakeN32(int width, int height, SkAlphaType at)