[][src]Enum png_pong::PngRaster

pub enum PngRaster {
    Gray8(Raster<SGray8>),
    Gray16(Raster<SGray16>),
    Rgb8(Raster<SRgb8>),
    Rgb16(Raster<SRgb16>),
    Palette(Raster<Gray8>, Box<Palette>, Vec<u8>),
    Graya8(Raster<SGraya8>),
    Graya16(Raster<SGraya16>),
    Rgba8(Raster<SRgba8>),
    Rgba16(Raster<SRgba16>),
}

A Raster of one of the PNG types (all are sRGB gamma). PNGs with less than 8 bits per channel are scaled up to 8 bits per channel.

Variants

Gray8(Raster<SGray8>)

1, 2, 4, 8-bit greyscale

Gray16(Raster<SGray16>)

16-bit grayscale

Rgb8(Raster<SRgb8>)

8-bit sRGB

Rgb16(Raster<SRgb16>)

16-bit sRGB

Palette(Raster<Gray8>, Box<Palette>, Vec<u8>)

1, 2, 4, 8-bit sRGB(A) palette

Graya8(Raster<SGraya8>)

8-bit grayscale with alpha

Graya16(Raster<SGraya16>)

16-bit grayscale with alpha

Rgba8(Raster<SRgba8>)

8-bit sRGB with alpha

Rgba16(Raster<SRgba16>)

16-bit sRGB with alpha

Trait Implementations

impl<P: Pixel> From<PngRaster> for Raster<P> where
    P::Chan: From<Ch8> + From<Ch16>, 
[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Error = Infallible

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.