Function vizia::vg::image::images::raster_from_compressed_texture_data
pub fn raster_from_compressed_texture_data(
data: impl Into<RCHandle<SkData>>,
dimensions: impl Into<ISize>,
ty: SkTextureCompressionType,
) -> Option<RCHandle<SkImage>>
Expand description
Creates a CPU-backed Image
from compressed data.
This method will decompress the compressed data and create an image wrapping it. Any mipmap levels present in the compressed data are discarded.