Display & Scale Images in egui — Rust GUI #17
11views
0010:22
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Build an image gallery app with thumbnails and zoom in egui. Learn include_image!, Image::new(), clickable
images, and fit_to_exact_size for scaling.
Student code: https://github.com/GoCelesteAI/egui_images
What You'll Learn:
• egui_extras::install_image_loaders for PNG support
• egui::include_image! to embed images at compile time
• Image::new() with max_width, corner_radius, sense(click)
• fit_to_exact_size for zoom control
• pub(crate) to share struct fields across modules
• Three-file module structure (app.rs, sidebar.rs, preview.rs)
This is Episode 17 of the Learn egui in Neovim series — building real Rust desktop apps from scratch using egui
and Neovim.
Chapters:
0:00 Intro
0:12 What We're Building
0:22 Key Concepts Preview
0:54 Coding the Image Gallery
7:44 App Demo
8:44 Recap
9:24 Next Episode
#rust #egui #rustlang #gui #tutorial #neovim #rustprogramming