2 stable releases
Uses old Rust 2015
1.16.1 | Jan 6, 2022 |
---|---|
1.16.0 | Jan 5, 2022 |
#705 in Images
Used in hotline-rs
130KB
4K
SLoC
Overview
stb_image_write_rust is Rust port of stb_image_write.h, which is library to save images in BMP, JPG, PNG and TGA formats
Crate
https://crates.io/crates/stb_image_write_rust
Sample Code
use stb_image_write_rust::ImageWriter::ImageWriter;
fn main() {
let mut writer = ImageWriter::new("output.jpg");
writer.write_jpg(width, height, components, image_data, 90);
}