cosmic::iced_renderer::graphics::core::window::icon

Function from_rgba

source
pub fn from_rgba(rgba: Vec<u8>, width: u32, height: u32) -> Result<Icon, Error>
Expand description

Builds an Icon from its RGBA pixels in the sRGB color space.