Data object SaveLayerConfig
interface struct SaveLayerConfig
Configuration data object for ICanvas3::saveLayerWithConfig. All fields are nullable.
Constructed using the builder pattern via MakeBuilderFor<SaveLayerConfig>().
See graphics-Canvas_UserGuide.md for usage examples and backdrop filter behavior details.
Fields
bounds
Optional bounds hint that limits the size of the offscreen layer allocation. When null, the offscreen buffer is sized to cover the entire current clip region. Note: This field is ignored whenRect?— Optional
::backdropFilter is set. To constrain the affected region with a
backdrop filter, use clipRect()/clipRRect() before calling saveLayerWithConfig.
paint
The paint applied when compositing the layer back at restore() time (alpha, blend mode, color filter). If null, no paint options would be applied.IPaint?— Optional
backdropFilter
IImageFilter?— Optional

