Struct lodepng::Bitmap [] [src]

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

Low-level representation of an image

Fields

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 in pixels

Height in pixels

Trait Implementations

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

[src]

Formats the value using the given formatter.