Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
setimagefilter |
, |
|
|
256 |
, |
|
|
100 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file setimagefilter.cpp.
4 {
7 bitmap.allocN32Pixels(100, 100);
10 paint.setAntiAlias(
true);
13 offscreen.clear(0);
14 offscreen.drawString(
"e", 20, 70,
font,
paint);
18}
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
static sk_sp< SkImageFilter > PointLitDiffuse(const SkPoint3 &location, SkColor lightColor, SkScalar surfaceScale, SkScalar kd, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
sk_sp< SkFontMgr > fontMgr
font
Font Metadata and Metrics.
static SkPoint3 Make(SkScalar x, SkScalar y, SkScalar z)