1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

Improve the frame around ImageButton

Helps https://github.com/emilk/egui/issues/721
This commit is contained in:
Emil Ernerfeldt
2021-09-20 22:36:57 +02:00
parent e7cfda4941
commit a5a5d6176d
5 changed files with 43 additions and 20 deletions

View File

@@ -28,7 +28,7 @@ fn main() {
let mut egui = egui_glium::EguiGlium::new(&display);
//load image by image crate
let image = image::load(
Cursor::new(&include_bytes!("../../eframe/examples/rust-logo-512x512.png")[..]),
Cursor::new(&include_bytes!("../../eframe/examples/rust-logo-256x256.png")[..]),
image::ImageFormat::Png,
)
.unwrap()