Struct quake_files::lmp::LmpImage [] [src]

pub struct LmpImage { /* fields omitted */ }

Quake 1 style LMP image. Does not store color values, only stores indices into a color palette. (see quake_files::palette::Palette)

Methods

impl LmpImage
[src]

Opens the LMP image at the supplied Read instance.

Writes the image to the supplied Write instance.

Creates a LMP image from a palette and some image. Returns an error if any of the image's colors are not in the palette.

Saves the image to a file. See image::ImageBuffer#save for supported image formats.

Uses the given palette to translate an index in this image to a color.