[−][src]Trait pix::ColorModel
Model for pixel colors.
Existing color models are Rgb, Bgr, Cmy, Gray, Hsv, Hsl, Hwb, YCbCr and Matte.
Associated Constants
const CIRCULAR: Range<usize>
Range of circular channel numbers
const LINEAR: Range<usize>
Range of linear channel numbers
const ALPHA: usize
Alpha channel number
Required methods
fn into_rgba<P>(p: P) -> PixRgba<P> where
P: Pixel<Model = Self>,
P: Pixel<Model = Self>,
Convert into red, green, blue and alpha components
fn from_rgba<P>(rgba: PixRgba<P>) -> P where
P: Pixel<Model = Self>,
P: Pixel<Model = Self>,
Convert from red, green, blue and alpha components
Implementors
impl ColorModel for Bgr
[src]
const CIRCULAR: Range<usize>
[src]
const LINEAR: Range<usize>
[src]
const ALPHA: usize
[src]
fn into_rgba<P>(p: P) -> PixRgba<P> where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert into red, green, blue and alpha components
fn from_rgba<P>(rgba: PixRgba<P>) -> P where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert from red, green, blue and alpha components
impl ColorModel for Cmy
[src]
const CIRCULAR: Range<usize>
[src]
const LINEAR: Range<usize>
[src]
const ALPHA: usize
[src]
fn into_rgba<P>(p: P) -> PixRgba<P> where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert into red, green, blue and alpha components
fn from_rgba<P>(rgba: PixRgba<P>) -> P where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert from red, green, blue and alpha components
impl ColorModel for Gray
[src]
const CIRCULAR: Range<usize>
[src]
const LINEAR: Range<usize>
[src]
const ALPHA: usize
[src]
fn into_rgba<P>(p: P) -> PixRgba<P> where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert into red, green, blue and alpha components
fn from_rgba<P>(rgba: PixRgba<P>) -> P where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert from red, green, blue and alpha components
impl ColorModel for Hsl
[src]
const CIRCULAR: Range<usize>
[src]
const LINEAR: Range<usize>
[src]
const ALPHA: usize
[src]
fn into_rgba<P>(p: P) -> PixRgba<P> where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert into red, green, blue and alpha components
fn from_rgba<P>(rgba: PixRgba<P>) -> P where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert from red, green, blue and alpha components
impl ColorModel for Hsv
[src]
const CIRCULAR: Range<usize>
[src]
const LINEAR: Range<usize>
[src]
const ALPHA: usize
[src]
fn into_rgba<P>(p: P) -> PixRgba<P> where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert into red, green, blue and alpha components
fn from_rgba<P>(rgba: PixRgba<P>) -> P where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert from red, green, blue and alpha components
impl ColorModel for Hwb
[src]
const CIRCULAR: Range<usize>
[src]
const LINEAR: Range<usize>
[src]
const ALPHA: usize
[src]
fn into_rgba<P>(p: P) -> PixRgba<P> where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert into red, green, blue and alpha components
fn from_rgba<P>(rgba: PixRgba<P>) -> P where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert from red, green, blue and alpha components
impl ColorModel for Matte
[src]
const CIRCULAR: Range<usize>
[src]
const LINEAR: Range<usize>
[src]
const ALPHA: usize
[src]
fn into_rgba<P>(p: P) -> PixRgba<P> where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert into red, green, blue and alpha components
fn from_rgba<P>(rgba: PixRgba<P>) -> P where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert from red, green, blue and alpha components
impl ColorModel for Rgb
[src]
const CIRCULAR: Range<usize>
[src]
const LINEAR: Range<usize>
[src]
const ALPHA: usize
[src]
fn into_rgba<P>(p: P) -> PixRgba<P> where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert into red, green, blue and alpha components
fn from_rgba<P>(rgba: PixRgba<P>) -> P where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert from red, green, blue and alpha components
impl ColorModel for YCbCr
[src]
const CIRCULAR: Range<usize>
[src]
const LINEAR: Range<usize>
[src]
const ALPHA: usize
[src]
fn into_rgba<P>(p: P) -> PixRgba<P> where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert into red, green, blue and alpha components
fn from_rgba<P>(rgba: PixRgba<P>) -> P where
P: Pixel<Model = Self>,
[src]
P: Pixel<Model = Self>,
Convert from red, green, blue and alpha components