43 paint.setAntiAlias(
true);
53 paint.setMaskFilter(
nullptr);
68 canvas->drawString(
"Hamburgefons Style",
x,
y,
font,
paint);
69 canvas->drawString(
"Hamburgefons Style",
71 paint.setMaskFilter(
nullptr);
75 canvas->drawString(
"Hamburgefons Style",
x,
y,
font,
paint);
102 canvas->translate(
dx, 0);
118 canvas->translate(
dx, 0);
122 canvas->translate(-
dx, 0);
123 canvas->translate(-30, -150);
130 canvas->clear(0xFF88FF88);
132 canvas->scale(0.25, 0.25);
172 SkM44 origCTM = canvas->getLocalToDevice();
174 for (
int y = 0;
y < 3; ++
y) {
175 for (
int x = 0;
x < 3; ++
x) {
178 canvas->resetMatrix();
182 canvas->setMatrix(origCTM);
187 std::move(flood),
nullptr);
191 p.setImageFilter(std::move(blur));
193 canvas->clipRect({0, 0, 1970, 1223});
194 canvas->saveLayer(
nullptr, &
p);
197 canvas->drawCircle(600, 150, 350, fill);
SkStrokeRec::Style fStyle
@ kSrcOver
r = s + (1-sa)*d
@ kOuter_SkBlurStyle
nothing inside, fuzzy outside
@ kSolid_SkBlurStyle
solid inside, fuzzy outside
@ kInner_SkBlurStyle
fuzzy inside, nothing outside
@ kNormal_SkBlurStyle
fuzzy inside and outside
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorWHITE
#define SkScalarRoundToScalar(x)
DEF_SIMPLE_GM_BG(blurs, canvas, 700, 500, 0xFFDDDDDD)
DEF_SIMPLE_GM(blur2rects, canvas, 700, 500)
static SkScalar SK_SPI ConvertRadiusToSigma(SkScalar radius)
static sk_sp< SkColorFilter > Blend(const SkColor4f &c, sk_sp< SkColorSpace >, SkBlendMode mode)
static sk_sp< SkImageFilter > ColorFilter(sk_sp< SkColorFilter > cf, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
static sk_sp< SkImageFilter > Blur(SkScalar sigmaX, SkScalar sigmaY, SkTileMode tileMode, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
static sk_sp< SkImageFilter > Blend(SkBlendMode mode, sk_sp< SkImageFilter > background, sk_sp< SkImageFilter > foreground=nullptr, const CropRect &cropRect={})
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
void setColor(SkColor color)
SkPathBuilder & addRect(const SkRect &, SkPathDirection, unsigned startIndex)
static constexpr SkScalar kTileHeight
static constexpr SkScalar kTileWidth
static SkColor blend(SkColor dst, SkColor src, void(*mode)(float, float, float, float *, float *, float *))
sk_sp< const SkImage > image
sk_sp< SkBlender > blender SkRect rect
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
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
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
font
Font Metadata and Metrics.
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)