Compare commits
No commits in common. "fc87ea8835bf62489124c06cd16c102e20a87ea8" and "07fc5c8448d9605cac4ae23b12caed72623f47cd" have entirely different histories.
fc87ea8835
...
07fc5c8448
4 changed files with 2 additions and 1276 deletions
1261
Cargo.lock
generated
1261
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -6,5 +6,3 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
image = "0.25.1"
|
|
||||||
imageproc = { version = "0.24.0", features = ["display-window"] }
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 212 KiB After Width: | Height: | Size: 701 KiB |
15
src/main.rs
15
src/main.rs
|
@ -1,14 +1,3 @@
|
||||||
use std::error::Error;
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
use image::io::Reader as ImageReader;
|
|
||||||
use imageproc::window::display_image;
|
|
||||||
|
|
||||||
fn main() -> Result<(), Box<dyn Error>> {
|
|
||||||
let img = ImageReader::open("./assets/Xbox_Controller_Blank.png")?.decode()?;
|
|
||||||
let img = img.into_rgba8();
|
|
||||||
// println!("{:?}",);
|
|
||||||
|
|
||||||
display_image("Image", &img, 150, 151);
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue