Rgba8ImageStore

Type Alias Rgba8ImageStore 

Source
pub type Rgba8ImageStore<'a> = ImageStore<'a, u8, 4>;

Aliased Type§

pub struct Rgba8ImageStore<'a> {
    pub buffer: Cow<'a, [u8]>,
    pub channels: usize,
    pub width: usize,
    pub height: usize,
    pub stride: usize,
    pub bit_depth: usize,
}

Fields§

§buffer: Cow<'a, [u8]>§channels: usize

Channels in the image

§width: usize

Image width

§height: usize

Image height

§stride: usize

Image stride, if stride is zero then it considered to be width * N

§bit_depth: usize

This is private field, currently used only for u16, will be automatically passed from upper func

Trait Implementations§

Source§

impl<'b> ImageStoreScaling<'b, u8, 4> for Rgba8ImageStore<'b>

Source§

fn scale( &self, store: &mut ImageStoreMut<'b, u8, 4>, options: ScalingOptions, ) -> Result<(), PicScaleError>