pub struct Image {
pub info: Option<Picture>,
pub width: u16,
pub height: u16,
pub pixels: Vec<u8>,
pub pcx: Vec<u8>,
}Expand description
Image from LGR.
Fields§
§info: Option<Picture>Optional information describing image.
width: u16Width of the image.
height: u16Height of the image.
pixels: Vec<u8>Image pixels. Each pixel is an index into LGR palette.
This array will only contain values if LGR was loaded with load_pixels option.
pcx: Vec<u8>Raw content of the PCX file.
This array will only contain values if LGR was loaded with load_raw_pcx option.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more