yageek / tiff

:city_sunrise: Access TIFF image with Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TIFF

Access TIFF image using Rust

Reading

let bytes: &[u8] = include_bytes!("../samples/ycbcr-cat.tif");
let mut cursor = Cursor::new(bytes);
let mut read = TIFFReader::new(&mut cursor).unwrap();
let field = read.get_field::<YResolution>().unwrap();
print("YResolution: {}", field.0);

About

:city_sunrise: Access TIFF image with Rust

License:MIT License


Languages

Language:Rust 100.0%