stb_image_write_rust 1.16.1

Rust port of the stb_image_write
Documentation
  • Coverage
  • 0%
    0 out of 77 items documented0 out of 6 items with examples
  • Size
  • Source code size: 128.69 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.36 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • StbRust/stb_image_write_rust
    1 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • rds1983

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