Crate png_framing [−] [src]
A simple PNG serialization library.
A (Tiny) Example
use png_framing::Png; // A tiny image. let bytes = vec![255, 0, 0, 255, 0, 0, 255, 255]; let (width, height) = (2, 1); // Save it! Png::from_bytes(width, height, bytes).save("sollux.png");
Structs
Error |
An unknown error. |
Native |
A native C pixel array, allocated using malloc. |
Png |
A raw RGBA image that can be converted easily to/from a PNG. |