mirror of
https://github.com/storytold/egui.git
synced 2026-11-19 09:01:37 +01:00
`ColorImage` fields are now private. Use `resolution()`, `pixels()`, `pixels_mut()`, and `source_size()` instead. Also renames `size` to `resolution` in several texture-related APIs (`ImageData`, `TextureHandle`, `TextureMeta`, `TextureAtlas`, `Fonts::font_image_resolution`). `ColorImage::new` now panics if `width * height != pixels.len()`. ## Motivation A) Make `ColorImage` always valid B) Stop confusing using the confusing word `size` where `resolution` is better
egui_extras
This is a crate that adds some features on top of egui. This crate is for experimental features, and features that require big dependencies that do not belong in egui.
Images
One thing egui_extras is commonly used for is to install image loaders for egui:
egui_extras = { version = "*", features = ["all_loaders"] }
image = { version = "0.25", features = ["jpeg", "png"] } # Add the types you want support for
egui_extras::install_image_loaders(egui_ctx);