MaskConfig
class MaskConfig
The mask configuration for MaskFilter.
Constructor
new MaskConfig(maskBefore: boolean, channel: MASK_CHANNEL) → {}
Name | Type | Default | Description |
---|---|---|---|
maskBefore | boolean | false |
If true, MaskFilter will mask the input of the applied filter instead of the output. In the case of a blur filter, this would cause cause the boundaries of the mask to soften as the blur would apply to the masked region instead of being clipped into it. |
channel | MASK_CHANNEL |
The mask channel indicating which pixels are in the mask region. |
Summary
Properties from MaskConfig
|
|
boolean |
Flag that indicates the applied filter is Y-symmetric. |
Public Properties
maskBefore
safeFlipY: boolean = false
Flag that indicates the applied filter is Y-symmetric.
MaskFilter will optimize rendering by not flipping the screen backdrop before passing it to the blend filter for Y-symmetric filters.
A filter is Y-symmetric if giving it an inverted input and then inverting the output is equivalent to giving it an upright input.