Function cosmic::widget::icon::from_raster_pixels

source ยท
pub fn from_raster_pixels(
    width: u32,
    height: u32,
    pixels: impl Into<Cow<'static, [u8]>> + AsRef<[u8]> + Send + Sync,
) -> Handle
Expand description

Create an image handle from RGBA data, where you must define the width and height.