[][src]Struct imagine::pixel_formats::RGBA8

#[repr(C)]
pub struct RGBA8 {
    pub r: u8,
    pub g: u8,
    pub b: u8,
    pub a: u8,
}

Red/Green/Blue/Alpha, 8-bit channels.

Data should be in the sRGB colorspace. If you need an alternate colorspace you should newtype this type with a wrapper type to make that clear.

Fields

r: u8g: u8b: u8a: u8

Trait Implementations

impl From<RGB8> for RGBA8[src]

impl From<YA8> for RGBA8[src]

impl From<Y8> for RGBA8[src]

impl Clone for RGBA8[src]

impl Copy for RGBA8[src]

impl Default for RGBA8[src]

impl Eq for RGBA8[src]

impl PartialEq<RGBA8> for RGBA8[src]

impl Debug for RGBA8[src]

impl StructuralPartialEq for RGBA8[src]

impl StructuralEq for RGBA8[src]

impl Zeroable for RGBA8[src]

impl Pod for RGBA8[src]

Auto Trait Implementations

impl Send for RGBA8

impl Sync for RGBA8

impl Unpin for RGBA8

impl UnwindSafe for RGBA8

impl RefUnwindSafe for RGBA8

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]