1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::scalars::Word;

#[derive(Clone, Debug)]
pub struct Image<'a> {
    /// Width in pixels
    pub width: Word,
    /// Height in pixels
    pub height: Word,
    /// Raw pixel data: row by row from top to bottom,
    /// for each scanline read pixels from left to right.
    /// --or--
    /// "Raw Cel" data compressed with ZLIB method (see NOTE.3)
    pub data: &'a [u8],
    /// True if the cel data is compressed
    pub compressed: bool,
}