Trait ffimage::Pixel

source ·
pub trait Pixel {
    const CHANNELS: u8;
    const SUBPIXELS: u8 = 1u8;
}
Expand description

Generic pixel attributes

Required Associated Constants§

source

const CHANNELS: u8

Number of channels for this pixel

Provided Associated Constants§

source

const SUBPIXELS: u8 = 1u8

Number of image pixels for this pixel

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Pixel for Gray<T>

source§

const CHANNELS: u8 = 1u8

source§

impl<T, const R: usize, const G: usize, const B: usize> Pixel for Rgb<T, R, G, B>

source§

const CHANNELS: u8 = 3u8