Struct framing::Rgba [] [src]

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

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

Trait Implementations

impl From<Rgb> for Rgba
[src]

Performs the conversion.

impl From<Bgr> for Rgba
[src]

Performs the conversion.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Formats the value using the given formatter.

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

impl<T: PartialEq> PartialEq for Rgba<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 Rgba<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<Bgra<T>> for Rgba<T>
[src]

Performs the conversion.

impl AsBytes for Rgba
[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 Rgba
[src]

Performs the conversion.

impl From<Grayscale> for Rgba
[src]

Performs the conversion.

impl From<Yuv> for Rgba
[src]

Performs the conversion.