Crates.io | stb_image_write_rust |
lib.rs | stb_image_write_rust |
version | 1.16.1 |
source | src |
created_at | 2022-01-05 02:10:54.912042 |
updated_at | 2022-01-06 22:24:31.31401 |
description | Rust port of the stb_image_write |
homepage | |
repository | https://github.com/StbRust/stb_image_write_rust |
max_upload_size | |
id | 508180 |
size | 128,993 |
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
https://crates.io/crates/stb_image_write_rust
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);
}