Crates.io | lunar-png |
lib.rs | lunar-png |
version | 0.1.2 |
source | src |
created_at | 2024-07-17 18:46:59.81156 |
updated_at | 2024-07-17 20:53:09.67252 |
description | Simple library for loading png images |
homepage | |
repository | https://github.com/Ciubix8513/lunar-logger |
max_upload_size | |
id | 1306457 |
size | 38,503 |
A simple png loading library
let mut file = std::fs::File::open("something.png").unwrap();
let mut data = Vec::new();
file.read_to_end(&mut data);
let image = lunar_png::read_png(&mut data.into_iter()).unwrap();