Struct lodepng::Bitmap [] [src]

pub struct Bitmap<PixelType> {
    pub buffer: CVec<PixelType>,
    pub width: usize,
    pub height: usize,
}

Low-level representation of an image

Fields

buffer: CVec<PixelType>

Raw bitmap memory. Layout depends on color mode and bitdepth used to create it.

  • For RGB/RGBA images one element is one pixel.
  • For <8bpp images pixels are packed, so raw bytes are exposed and you need to do bit-twiddling youself
width: usize

Width in pixels

height: usize

Height in pixels

Trait Implementations

impl<PixelType> Debug for Bitmap<PixelType>
[src]

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

Formats the value using the given formatter.