Type Alias slint::Rgba8Pixel

pub type Rgba8Pixel = RGBA<u8, u8>;
Expand description

Convenience alias for a pixel with four color channels (red, green, blue and alpha), each encoded as u8.

Aliased Type§

struct Rgba8Pixel {
    pub r: u8,
    pub g: u8,
    pub b: u8,
    pub a: u8,
}

Fields§

§r: u8

Red

§g: u8

Green

§b: u8

Blue

§a: u8

Alpha

Trait Implementations§

source§

impl<T> FromIterator<T> for RGBA<T, T>

source§

fn from_iter<I>(into_iter: I) -> RGBA<T, T>where I: IntoIterator<Item = T>,

Takes exactly 4 elements from the iterator and creates a new instance. Panics if there are fewer elements in the iterator.