Trait pix::ColorModel
source · [−]pub trait ColorModel: Clone + Copy + Debug + Default + PartialEq + Any {
const CIRCULAR: Range<usize>;
const LINEAR: Range<usize>;
const ALPHA: usize;
fn into_rgba<P>(p: P) -> PixRgba<P>
where
P: Pixel<Model = Self>;
fn from_rgba<P>(rgba: PixRgba<P>) -> P
where
P: Pixel<Model = Self>;
}
Expand description
Required Associated Constants
Required Methods
Convert into red, green, blue and alpha components