Hi everyone,
I'm trying to follow the given example at openexr - Rust
use openexr::prelude::*;
fn main() {
#[cfg(feature = "imath_cgmath")]
use imath_traits::Box2i;
let mut file = RgbaInputFile::new("image.exr", 1).unwrap();
let data_window: Box2i = *file.header().data_window();
let width = data_window.width() + 1;
let height = data_window.height() + 1;
}
but I'm getting this error and I don't know why.
error[E0412]: cannot find type `Box2i` in this scope
--> src/main.rs:8:22
|
8 | let data_window: Box2i = *file.header().data_window();
| ^^^^^ not found in this scope
my Cargo.toml contains the cgmath dependency and imath_cgmath feature on openexr however to compiler still complains.
[dependencies]
cgmath = "0.18.0"
openexr = { version = "0.11.0", features = ["imath_cgmath"] }
Can anyone help me?