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

#24 in #maker

Download history 10/week @ 2024-01-12 3/week @ 2024-01-19 1/week @ 2024-01-26 10/week @ 2024-02-09 28/week @ 2024-02-16 20/week @ 2024-02-23 27/week @ 2024-03-01 30/week @ 2024-03-08 22/week @ 2024-03-15 32/week @ 2024-03-22 59/week @ 2024-03-29 22/week @ 2024-04-05 19/week @ 2024-04-12 19/week @ 2024-04-19 15/week @ 2024-04-26

90 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