#include <SkSVGFeImage.h>
|
sk_sp< SkImageFilter > | makeImageFilter (const SkSVGRenderContext &ctx, const SkSVGFilterContext &fctx) const |
|
SkRect | resolveFilterSubregion (const SkSVGRenderContext &, const SkSVGFilterContext &) const |
|
virtual SkSVGColorspace | resolveColorspace (const SkSVGRenderContext &, const SkSVGFilterContext &) const |
|
void | applyProperties (SkSVGRenderContext *) const |
|
void | appendChild (sk_sp< SkSVGNode >) override |
|
void | setTransform (const SkSVGTransformType &t) |
|
| ~SkSVGNode () override |
|
SkSVGTag | tag () const |
|
virtual void | appendChild (sk_sp< SkSVGNode >)=0 |
|
void | render (const SkSVGRenderContext &) const |
|
bool | asPaint (const SkSVGRenderContext &, SkPaint *) const |
|
SkPath | asPath (const SkSVGRenderContext &) const |
|
SkRect | objectBoundingBox (const SkSVGRenderContext &) const |
|
void | setAttribute (SkSVGAttribute, const SkSVGValue &) |
|
bool | setAttribute (const char *attributeName, const char *attributeValue) |
|
virtual bool | parseAndSetAttribute (const char *name, const char *value) |
|
| SkRefCntBase () |
|
virtual | ~SkRefCntBase () |
|
bool | unique () const |
|
void | ref () const |
|
void | unref () const |
|
static SkMatrix | ComputeViewboxMatrix (const SkRect &, const SkRect &, SkSVGPreserveAspectRatio) |
|
skia_private::STArray< 1, sk_sp< SkSVGNode >, true > | fChildren |
|
Definition at line 14 of file SkSVGFeImage.h.
◆ getInputs()
|
inlineoverrideprotectedvirtual |
◆ Make()
◆ onMakeImageFilter()
Implements SkSVGFe.
Definition at line 23 of file SkSVGFeImage.cpp.
24 {
25
27 const auto imgInfo =
29 if (!imgInfo.fImage) {
30 return nullptr;
31 }
32
33
35 const SkRect& dstRect = imgInfo.fDst;
36
40
41
42
44}
static sk_sp< SkImageFilter > Merge(sk_sp< SkImageFilter > *const filters, int count, const CropRect &cropRect={})
static sk_sp< SkImageFilter > Image(sk_sp< SkImage > image, const SkRect &srcRect, const SkRect &dstRect, const SkSamplingOptions &sampling)
SkRect resolveFilterSubregion(const SkSVGRenderContext &, const SkSVGFilterContext &) const
const SkRect & filterEffectsRegion() const
static ImageInfo LoadImage(const sk_sp< skresources::ResourceProvider > &, const SkSVGIRI &, const SkRect &, SkSVGPreserveAspectRatio)
const sk_sp< skresources::ResourceProvider > & resourceProvider() const
static SkRect Make(const SkISize &size)
◆ parseAndSetAttribute()
bool SkSVGFeImage::parseAndSetAttribute |
( |
const char * |
n, |
|
|
const char * |
v |
|
) |
| |
|
overrideprotectedvirtual |
Reimplemented from SkSVGFe.
Definition at line 16 of file SkSVGFeImage.cpp.
16 {
18 this->setHref(SkSVGAttributeParser::parse<SkSVGIRI>("xlink:href", n, v)) ||
19 this->setPreserveAspectRatio(SkSVGAttributeParser::parse<SkSVGPreserveAspectRatio>(
20 "preserveAspectRatio", n, v));
21}
bool parseAndSetAttribute(const char *, const char *) override
The documentation for this class was generated from the following files: