Struct framing::Bgra [] [src]

pub struct Bgra<T = u8>(pub T, pub T, pub T, pub T);

A pixel that is four bytes long and is made of a blue, green, red and alpha channel, in that order.

Trait Implementations

impl<T: Clone> Clone for Bgra<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Bgra<T>
[src]

impl<T: Debug> Debug for Bgra<T>
[src]

Formats the value using the given formatter.

impl<T: Eq> Eq for Bgra<T>
[src]

impl<T: PartialEq> PartialEq for Bgra<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Hash> Hash for Bgra<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> From<Rgba<T>> for Bgra<T>
[src]

Performs the conversion.

impl AsBytes for Bgra
[src]

The type that represents the collection of bytes. Read more

The number of channels in each pixel. Read more

impl From<[u8; 4]> for Bgra
[src]

Performs the conversion.