Trait simd_blit::PixelArray

source ·
pub trait PixelArray {
    // Required methods
    fn get(&self, index: usize) -> RGBA8;
    fn width(&self) -> usize;
    fn height(&self) -> usize;
    fn length(&self) -> usize;
    fn bytes_per_pixel() -> usize;
    fn has_alpha() -> bool;
}
Expand description

Trait for 2D-sized & indexed pixel storage

Required Methods§

source

fn get(&self, index: usize) -> RGBA8

source

fn width(&self) -> usize

source

fn height(&self) -> usize

source

fn length(&self) -> usize

source

fn bytes_per_pixel() -> usize

source

fn has_alpha() -> bool

Implementors§