pub trait ToPixel {
    // Required method
    fn to_pixel(&self) -> Pixel;
}
Expand description

Trait to convert pixels in various formats to our own Pixel layout.

Required Methods§

source

fn to_pixel(&self) -> Pixel

Implementations on Foreign Types§

source§

impl ToPixel for BGRA8

source§

fn to_pixel(&self) -> Pixel

source§

impl ToPixel for Rgba<u8>

source§

fn to_pixel(&self) -> Pixel

Implementors§