stb_image_write_rust 1.16.1

Rust port of the stb_image_write
Documentation

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);
}