7 bitmap.allocN32Pixels(100, 100);
10 paint.setAntiAlias(
true);
constexpr SkColor SK_ColorWHITE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void clear(SkColor color)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
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.
REG_FIDDLE(setimagefilter, 256, 100, false, 0)
static SkPoint3 Make(SkScalar x, SkScalar y, SkScalar z)