iced_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.