Reader and writer for the RPG Maker XYZ image format.
This library works well with the
Here's an example of reading an XYZ image into an
extern crate image; extern crate xyz; use image::RgbImage; use std::fs::File; let file = try!(File::open("boat2.xyz")); let raw = try!(xyz::read(&mut file)); let boat = RgbImage::from_raw(raw.width as u32, raw.height as u32, raw.to_rgb_buffer());
You can then do something useful with the
Represents an XYZ image.
Reads an XYZ image.
Writes an XYZ image.
Represents a color in RGB form.