Function vizia::vg::image::images::deferred_from_generator
pub fn deferred_from_generator(
image_generator: RefHandle<SkImageGenerator>,
) -> Option<RCHandle<SkImage>>
Expand description
Creates Image
from data returned by image_generator
. The image data will not be created
(on either the CPU or GPU) until the image is actually drawn.
Generated data is owned by Image
and may not be shared or accessed.
Image
is returned if generator data is valid. Valid data parameters vary by type of data
and platform.
image_generator
may wrap Picture
data, codec data, or custom data.