120 {
121 const char* svgStr[] = {
122 "M474.889 27.0952C474.889 27.1002 474.888 27.1018 474.889 27.1004L479.872 27.5019C479.883 27.3656 479.889 27.2299 479.889 27.0952L474.889 27.0952L474.889 27.0952Z",
123 "M474.94 26.9405C474.93 26.9482 474.917 26.9576 474.901 26.9683L477.689 31.1186C477.789 31.0512 477.888 30.9804 477.985 30.9059L474.94 26.9405L474.94 26.9405Z"
124 };
125
128
129 for (
int i = 0;
i < 2;
i++)
130 {
133 }
134
136
137 auto r =
path[0].getBounds();
138 canvas->translate(30, 30);
139 canvas->scale(200 / r.width(), 200 / r.width());
140 canvas->translate(-r.fLeft, -r.fTop);
141
144 paint.setAntiAlias(
true);
146 paint.setStrokeWidth(0);
147
150
151
153 canvas->drawPath(resultPath,
paint);
154}
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
@ kUnion_SkPathOp
union (inclusive-or) the two paths
@ kStroke_Style
set to stroke geometry
static bool FromSVGString(const char str[], SkPath *)
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