Trait luminance::pixel::Pixel [] [src]

pub trait Pixel {
    type Encoding;
    type RawEncoding;
    fn pixel_format() -> PixelFormat;
}

Reify a static pixel format to runtime.

Associated Types

Encoding of a single pixel. It should match the PixelFormat mapping.

Raw encoding of a single pixel; i.e. that is, encoding of underlying values in contiguous texture memory. It should be match the PixelFormat mapping.

Required Methods

Reify to PixelFormat.

Implementors