aseprite_loader/binary/image.rs
1use super::scalars::Word;
2
3#[derive(Clone, Debug)]
4pub struct Image<'a> {
5 /// Width in pixels
6 pub width: Word,
7 /// Height in pixels
8 pub height: Word,
9 /// Raw pixel data: row by row from top to bottom,
10 /// for each scanline read pixels from left to right.
11 /// --or--
12 /// "Raw Cel" data compressed with ZLIB method (see NOTE.3)
13 pub data: &'a [u8],
14 /// True if the cel data is compressed
15 pub compressed: bool,
16}