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

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

Reify a static pixel format at 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