4 {
5static SkMatrix setpsmatrix(
float sx,
float kx,
float ky,
float sy,
float tx,
float ty,
int h) {
7
8 m.setAll(sx, -kx, -tx * sx - (ty -
h) * kx, -ky, sy, (ty -
h) * sy + tx * ky, 0, 0, 1);
10}
11
14 canvas->
scale(15, -15);
25 p.setStrokeWidth(0.1f);
26
32
40
47
51 p.setColor(0xFF007F00);
55
56 canvas->
scale(15, 15);
58
60 unsigned char d[] = {0x00, 0x00, 0x00, 0x00, 0xff, 0xff};
65
67 m = setpsmatrix(1, 0, 0, 1, -1, -24, 2);
68
72
74 m = setpsmatrix(0, 1, 1, 0, -24, -5, 2);
75
79
81 m = setpsmatrix(0, 1, -1, 0, 27, -8, 2);
82
86
88 m = setpsmatrix(0, -1, -1, 0, -24, 13, 2);
89
93
95 m = setpsmatrix(-1, 0, 0, -1, 17, 26, 2);
96
100
102 m = setpsmatrix(-1, 0, 0, 1, 21, -24, 2);
103
107}
108}
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
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