mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Gif support (#4620)
* Previous PR: #3951 * Closes #4489 --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
BIN
examples/images/src/ferris.gif
Normal file
BIN
examples/images/src/ferris.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 602 KiB |
@@ -27,6 +27,7 @@ impl eframe::App for MyApp {
|
||||
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
|
||||
egui::CentralPanel::default().show(ctx, |ui| {
|
||||
egui::ScrollArea::both().show(ui, |ui| {
|
||||
ui.image(egui::include_image!("ferris.gif"));
|
||||
ui.add(
|
||||
egui::Image::new("https://picsum.photos/seed/1.759706314/1024").rounding(10.0),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user