Function deferred_from_picture
pub fn deferred_from_picture(
picture: impl Into<RCHandle<SkPicture>>,
dimensions: impl Into<ISize>,
matrix: Option<&Matrix>,
paint: Option<&Handle<SkPaint>>,
bit_depth: SkImages_BitDepth,
color_space: impl Into<Option<RCHandle<SkColorSpace>>>,
props: impl Into<Option<SurfaceProps>>,
) -> Option<RCHandle<SkImage>>Expand description
Creates Image from picture. Returned Image width and height are set by dimensions.
Image draws picture with matrix and paint, set to bit_depth and color_space.
The Picture data is not turned into an image (CPU or GPU) until it is drawn.
If matrix is None, draws with identity Matrix. If paint is None, draws
with default Paint. color_space may be None.
picture- stream of drawing commandsdimensions- width and heightmatrix-Matrixto rotate, scale, translate, and so on; may beNonepaint-Paintto apply transparency, filtering, and so on; may beNonebit_depth- 8-bit integer or 16-bit float: per componentcolor_space- range of colors; may beNoneprops- props to use when rasterizing the picture
Returns: created Image, or None