8 surf->getCanvas()->drawRect({0, 0, 1, 1},
SkPaint());
9 surf->getCanvas()->drawRect({1, 1, 2, 2},
SkPaint());
18 const SkRect r = { 0, 0, 100, 100 };
24 canvas->
scale(0.5, 0.5);
29 p.setColor(0xFF808080);
33 p.setColor(0x80000000);
REG_FIDDLE_SRGB(50_percent_srgb, 256, 256, false, 0, 0, false)
constexpr SkColor SK_ColorWHITE
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 drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void scale(SkScalar sx, SkScalar sy)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
static void make(SkBitmap *bitmap, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace)
SkSamplingOptions(SkFilterMode::kLinear))
static SkImageInfo MakeN32Premul(int width, int height)