5static SkMatrix setpsmatrix(
float sx,
float kx,
float ky,
float sy,
float tx,
float ty,
int h) {
8 m.setAll(sx, -kx, -tx * sx - (ty -
h) * kx, -ky, sy, (ty -
h) * sy + tx * ky, 0, 0, 1);
14 canvas->
scale(15, -15);
25 p.setStrokeWidth(0.1f);
51 p.setColor(0xFF007F00);
56 canvas->
scale(15, 15);
60 unsigned char d[] = {0x00, 0x00, 0x00, 0x00, 0xff, 0xff};
67 m = setpsmatrix(1, 0, 0, 1, -1, -24, 2);
74 m = setpsmatrix(0, 1, 1, 0, -24, -5, 2);
81 m = setpsmatrix(0, 1, -1, 0, 27, -8, 2);
88 m = setpsmatrix(0, -1, -1, 0, -24, 13, 2);
95 m = setpsmatrix(-1, 0, 0, -1, 17, 26, 2);
102 m = setpsmatrix(-1, 0, 0, 1, 21, -24, 2);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kOpaque_SkAlphaType
pixel is opaque
@ kGray_8_SkColorType
pixel with grayscale level in 8-bit byte
constexpr SkColor SK_ColorGRAY
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void translate(SkScalar dx, SkScalar dy)
void rotate(SkScalar degrees)
void drawPath(const SkPath &path, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
void concat(const SkMatrix &matrix)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkData > MakeWithoutCopy(const void *data, size_t length)
@ kStroke_Style
set to stroke geometry
REG_FIDDLE(example3ps, 320, 256, false, 0)
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
SK_API sk_sp< SkImage > RasterFromData(const SkImageInfo &info, sk_sp< SkData > pixels, size_t rowBytes)
sk_sp< const SkImage > image
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
std::shared_ptr< const fml::Mapping > data