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: String> String for RGBA<T>

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

Derived Implementations

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