GColorMatrixFilter class
A color matrix filter that applies a ColorFilter effect to the content.
- Inheritance
-
- Object
- GBaseFilter
- GColorMatrixFilter
Constructors
- GColorMatrixFilter(ColorFilter? colorFilter)
- Creates a new GColorMatrixFilter with the given color filter.
Properties
- colorFilter ↔ ColorFilter?
-
The color filter effect to apply to the content.
getter/setter pair
- currentObject ↔ GDisplayObject?
-
The currentObject property holds a reference to the display object that
the filter is applied to. OutlineFilter uses this to adjust the filter
size to the current object scale.
getter/setter pairinherited
- dirty ↔ bool
-
The dirty property is used to determine if the filter needs to be
rebuilt.
getter/setter pairinherited
- filterRect → GRect
-
Returns the filter's rectangle.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
Checks if the filter has any effect to apply.
no setteroverride
- layerBounds ↔ GRect?
-
The layerBounds property holds the bounds of the display object.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildFilter(
) → void -
The buildFilter method is called to rebuild the filter.
inherited
-
expandBounds(
GRect layerBounds, GRect outputBounds) → void -
The expandBounds method is used to expand the bounds of the display object.
The
layerBounds
parameter is the current bounds of the display object, and theoutputBounds
parameter is the bounds that should be expanded to.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolvePaint(
Paint paint) → void -
Sets the paint's color filter to the colorFilter effect.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
) → void -
The update method is called to check if the filter needs to be rebuilt.
If the dirty property is true and the isValid property is also true,
then the buildFilter method is called to rebuild the filter.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited