4REG_FIDDLE(Surface_MakeRenderTarget_2, 256, 256,
false, 0) {
10 paint.setAntiAlias(
true);
13 paint.setColor(0xFFBBBBBB);
17 surfaceCanvas->drawString(
"Text", 0, 25,
font,
paint);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kOpaque_SkAlphaType
pixel is opaque
constexpr SkColor SK_ColorWHITE
REG_FIDDLE(Surface_MakeRenderTarget_2, 256, 256, false, 0)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
virtual GrRecordingContext * recordingContext() const
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
sk_sp< const SkImage > image
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
SK_API sk_sp< SkSurface > RenderTarget(GrRecordingContext *context, skgpu::Budgeted budgeted, const SkImageInfo &imageInfo, int sampleCount, GrSurfaceOrigin surfaceOrigin, const SkSurfaceProps *surfaceProps, bool shouldCreateWithMips=false, bool isProtected=false)
font
Font Metadata and Metrics.
static SkImageInfo MakeN32(int width, int height, SkAlphaType at)
static constexpr SkRect MakeWH(float w, float h)
static void test_draw(SkCanvas *canvas, const char label[])