 |
Skia
2D Graphics Library
|
Go to the documentation of this file.
8 #ifndef SkImageFilter_DEFINED
9 #define SkImageFilter_DEFINED
64 return this->isColorFilterNode(filterPtr);
118 friend class SkImageFilter_Base;
ColorFilters are optional objects in the drawing pipeline.
Definition: SkColorFilter.h:25
@ kReverse_MapDirection
Definition: SkImageFilter.h:35
Definition: SkRefCnt.h:118
int countInputs() const
Returns the number of inputs this filter will accept (some inputs can be NULL).
sk_sp< SkImageFilter > refMe() const
Definition: SkImageFilter.h:113
bool asColorFilter(SkColorFilter **filterPtr) const
Definition: SkImageFilter.h:63
static sk_sp< SkFlattenable > Deserialize(Type, const void *data, size_t length, const SkDeserialProcs *procs=nullptr)
sk_sp< T > sk_ref_sp(T *obj)
Definition: SkRefCnt.h:374
Type
Definition: SkFlattenable.h:28
virtual SkRect computeFastBounds(const SkRect &bounds) const
sk_sp< SkImageFilter > makeWithLocalMatrix(const SkMatrix &matrix) const
If this filter can be represented by another filter + a localMatrix, return that filter,...
SkIRect filterBounds(const SkIRect &src, const SkMatrix &ctm, MapDirection, const SkIRect *inputRect=nullptr) const
Map a device-space rect recursively forward or backward through the filter DAG.
static sk_sp< SkImageFilter > Deserialize(const void *data, size_t size, const SkDeserialProcs *procs=nullptr)
Definition: SkImageFilter.h:105
@ kSkImageFilter_Type
Definition: SkFlattenable.h:32
SkFlattenable()
Definition: SkFlattenable.h:45
static SkFlattenable::Type GetFlattenableType()
Definition: SkImageFilter.h:97
#define SK_API
Definition: SkTypes.h:181
const SkImageFilter * getInput(int i) const
Returns the input filter at a given index, or NULL if no input is connected.
MapDirection
Definition: SkImageFilter.h:33
bool canComputeFastBounds() const
bool isColorFilterNode(SkColorFilter **filterPtr) const
Returns whether this image filter is a color filter and puts the color filter into the "filterPtr" pa...
@ kForward_MapDirection
Definition: SkImageFilter.h:34
Definition: SkMatrix.h:48
Definition: SkSerialProcs.h:61
Definition: SkFlattenable.h:26
SkFlattenable::Type getFlattenableType() const override
Definition: SkImageFilter.h:101
bool asAColorFilter(SkColorFilter **filterPtr) const
Returns true (and optionally returns a ref'd filter) if this imagefilter can be completely replaced b...
Base class for image filters.
Definition: SkImageFilter.h:31