1 stable release
Uses old Rust 2015
2.27.0 |
|
---|---|
1.26.1 | Jan 6, 2022 |
#6 in #height
235KB
6K
SLoC
Overview
stb_truetype_rust is Rust port of stb_truetype.h, which is library to save images in BMP, JPG, PNG and TGA formats
Crate
Sample Code
use stb_truetype_rust::ImageWriter::ImageWriter;
fn main() {
let mut writer = ImageWriter::new("output.jpg");
writer.write_jpg(width, height, components, image_data, 90);
}