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 5/week @ 2023-12-11 13/week @ 2023-12-18 5/week @ 2023-12-25 15/week @ 2024-01-08 3/week @ 2024-01-15 3/week @ 2024-01-22 1/week @ 2024-02-05 19/week @ 2024-02-12 23/week @ 2024-02-19 25/week @ 2024-02-26 30/week @ 2024-03-04 24/week @ 2024-03-11 25/week @ 2024-03-18 37/week @ 2024-03-25

118 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
~16K SLoC