Go to the source code of this file.
|
| REG_FIDDLE (Canvas_destructor, 256, 256, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Canvas_destructor |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Canvas_destructor.cpp.
4 {
8 {
12 offscreen.drawString(
"ABC", 20, 160,
font,
paint);
14 offscreen.saveLayerAlpha(&layerBounds, 128);
16 offscreen.drawString(
"DEF", 20, 160,
font,
paint);
17 }
19}
20}
constexpr SkColor SK_ColorWHITE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
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 MakeN32Premul(int width, int height)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)