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

Download history 57/week @ 2024-04-01 19/week @ 2024-04-08 15/week @ 2024-04-15 23/week @ 2024-04-22 20/week @ 2024-04-29 15/week @ 2024-05-06 23/week @ 2024-05-13 21/week @ 2024-05-20 20/week @ 2024-05-27 20/week @ 2024-06-03 23/week @ 2024-06-10 11/week @ 2024-06-17 31/week @ 2024-06-24 8/week @ 2024-07-08 23/week @ 2024-07-15

62 downloads per month
Used in 3 crates (via picto)

MIT/Apache

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