4个版本 (2个破坏性更新)
0.3.1 | 2020年4月19日 |
---|---|
0.3.0 | 2020年4月19日 |
0.2.0 | 2020年4月19日 |
0.1.0 | 2020年4月4日 |
#639 in 图像
15KB
409 行
tim2-rs
用于加载TIM2 (.tm2)图像文件的图像加载器
用法
将crate添加到项目的Cargo.toml文件中
[dependencies]
tim2 = "0.1.0"
以下是加载文件的示例
use tim2;
fn main() {
let image = tim2::load("./assets/test.tm2").unwrap();
/* print the header info for each frame found */
for (i, frame) in image.frames().iter().enumerate() {
println!("frame[{}]: <{} {}>", i, frame.width(), frame.height());
}
}
lib.rs
:
tim2
用于加载TIM2 (.tm2)图像文件的图像加载器
依赖项
~115KB