1 2 3 4 5 6 7 8 9 10 11 12 13 14
use super::*; /// Decoded 8-bit straight-alpha RGBA image buffer used for pure-Rust icon resizing and encoding. #[derive(Clone, Data, Debug, Eq, New, PartialEq)] pub struct RgbaImage { /// Image width in pixels. #[get(type(copy))] pub(crate) width: u32, /// Image height in pixels. #[get(type(copy))] pub(crate) height: u32, /// Row-major RGBA8 pixel bytes (`width * height * 4`). pub(crate) pixels: Vec<u8>, }