Function vizia::vg::image::images::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 commands
  • dimensions - width and height
  • matrix - Matrix to rotate, scale, translate, and so on; may be None
  • paint - Paint to apply transparency, filtering, and so on; may be None
  • bit_depth - 8-bit integer or 16-bit float: per component
  • color_space - range of colors; may be None
  • props - props to use when rasterizing the picture Returns: created Image, or None