pub struct Bitmap<PixelType> {
pub buffer: CVec<PixelType>,
pub width: usize,
pub height: usize,
}Low-level representation of an image
Fields
buffer | 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 | |
height | |
Trait Implementations
impl<PixelType> Debug for Bitmap<PixelType>
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct, enum,
trait, typedef (or
tdef).
Search functions by type signature (e.g.
vec -> usize)