3 unstable releases
Uses old Rust 2015
0.2.1 | Apr 24, 2017 |
---|---|
0.2.0 | Mar 13, 2016 |
0.1.0 | Mar 6, 2016 |
#23 in #maker
62 downloads per month
Used in 3 crates
(via picto)
57KB
59 lines
rust-xyz
xyz is a library for reading and writing the RPG Maker XYZ image format.
lib.rs
:
Reader and writer for the RPG Maker XYZ image format.
Example
This library works well with the image
crate.
Here's an example of reading an XYZ image into an ImageBuffer
:
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 boat
.
Dependencies
~0.6–0.9MB
~17K SLoC