GitHub project page

Struct lodepng::RGBA [] [src]

pub struct RGBA<ComponentType> {
    pub r: ComponentType,
    pub g: ComponentType,
    pub b: ComponentType,
    pub a: ComponentType,
}

RGBA<T> with T appropriate for bit depth (u8, u16)

Fields

r
g
b
a

0 = transparent, 255 = opaque

Trait Implementations

impl<T: Display> Display for RGBA<T>

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl<ComponentType: Debug> Debug for RGBA<ComponentType> where ComponentType: Debug, ComponentType: Debug, ComponentType: Debug, ComponentType: Debug

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<ComponentType: Clone> Clone for RGBA<ComponentType> where ComponentType: Clone, ComponentType: Clone, ComponentType: Clone, ComponentType: Clone

fn clone(&self) -> RGBA<ComponentType>

fn clone_from(&mut self, source: &Self)

impl<ComponentType: Copy> Copy for RGBA<ComponentType> where ComponentType: Copy, ComponentType: Copy, ComponentType: Copy, ComponentType: Copy