Skip to content
/ pamper Public

A very minimal rust library to save image data to .pam files.

License

Notifications You must be signed in to change notification settings

odwngit/pamper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pamper

A super simple rust library to write image data to .pam (Portable Arbitrary Map) files.
This is very rudimentary, with no support for some features of .pam such as black and white tuple types (and even maxval is always set to 255).
But, this is suitable for my purposes.

Usage

Example usage:

use pamper::save_pam;

fn main() {
    let data: Vec<u8> = vec![
        255, 0, 0,
        0, 255, 0,
        0, 0, 255
    ];

    save_pam("output.pam", 3, 1, 3, false, data);
}

About

A very minimal rust library to save image data to .pam files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages