Files
egui/crates/egui_extras
Emil Ernerfeldt 37119162c7 Make the internals of ColorImage private (#8714)
`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
2026-10-19 09:22:26 +02:00
..
2026-08-18 12:52:07 +00:00

egui_extras

Latest version Documentation unsafe forbidden MIT Apache

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);