Crates.io | stb_truetype_rust |
lib.rs | stb_truetype_rust |
version | 1.26.1 |
source | src |
created_at | 2022-01-06 15:18:45.230642 |
updated_at | 2022-01-06 15:22:03.339519 |
description | Rust port of the stb_truetype |
homepage | |
repository | https://github.com/StbRust/stb_truetype_rust |
max_upload_size | |
id | 509011 |
size | 233,871 |
stb_truetype_rust is Rust port of stb_truetype.h, which is library to save images in BMP, JPG, PNG and TGA formats
use stb_truetype_rust::ImageWriter::ImageWriter;
fn main() {
let mut writer = ImageWriter::new("output.jpg");
writer.write_jpg(width, height, components, image_data, 90);
}