[−][src]Trait pix::Format
Pixel format determines Channels and bit depth.
Associated Types
Loading content...Required methods
fn rgba(self) -> [Self::Chan; 4]
Get red, green, blue and alpha Channel
s
fn with_rgba(rgba: [Self::Chan; 4]) -> Self
Make a pixel with given RGBA Channel
s
fn difference(self, rhs: Self) -> Self
Get channel-wise difference
fn within_threshold(self, rhs: Self) -> bool
Check if all Channel
s are within threshold
Implementors
impl<C, A> Format for Gray<C, A> where
C: Channel,
A: Alpha<Chan = C> + From<C>,
[src]
C: Channel,
A: Alpha<Chan = C> + From<C>,
type Chan = C
fn rgba(self) -> [Self::Chan; 4]
[src]
Get red, green, blue and alpha Channel
s
fn with_rgba(rgba: [Self::Chan; 4]) -> Self
[src]
Make a pixel with given RGBA Channel
s
fn difference(self, rhs: Self) -> Self
[src]
Get channel-wise difference
fn within_threshold(self, rhs: Self) -> bool
[src]
Check if all Channel
s are within threshold
impl<C, A> Format for Mask<C, A> where
C: Channel,
A: Alpha<Chan = C> + From<C>,
[src]
C: Channel,
A: Alpha<Chan = C> + From<C>,
type Chan = C
fn rgba(self) -> [Self::Chan; 4]
[src]
Get red, green, blue and alpha Channel
s
fn with_rgba(rgba: [Self::Chan; 4]) -> Self
[src]
Make a pixel with given RGBA Channel
s
fn difference(self, rhs: Self) -> Self
[src]
Get channel-wise difference
fn within_threshold(self, rhs: Self) -> bool
[src]
Check if all Channel
s are within threshold
impl<C, A> Format for Rgb<C, A> where
C: Channel,
A: Alpha<Chan = C> + From<C>,
[src]
C: Channel,
A: Alpha<Chan = C> + From<C>,
type Chan = C
fn rgba(self) -> [Self::Chan; 4]
[src]
Get red, green, blue and alpha Channel
s
fn with_rgba(rgba: [Self::Chan; 4]) -> Self
[src]
Make a pixel with given RGBA Channel
s
fn difference(self, rhs: Self) -> Self
[src]
Get channel-wise difference
fn within_threshold(self, rhs: Self) -> bool
[src]
Check if all Channel
s are within threshold