mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Final image API doc tweaks
This commit is contained in:
@@ -42,7 +42,8 @@ http = ["dep:ehttp"]
|
||||
##
|
||||
## You also need to ALSO opt-in to the image formats you want to support, like so:
|
||||
## ```toml
|
||||
## image = { version = "0.24", features = ["jpeg", "png"] }
|
||||
## image = { version = "0.24", features = ["jpeg", "png"] } # Add the types you want support for
|
||||
|
||||
## ```
|
||||
image = ["dep:image"]
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ One thing `egui_extras` is commonly used for is to install image loaders for `eg
|
||||
|
||||
```toml
|
||||
egui_extras = { version = "*", features = ["all_loaders"] }
|
||||
image = { version = "0.24", features = ["jpeg", "png"] }
|
||||
image = { version = "0.24", features = ["jpeg", "png"] } # Add the types you want support for
|
||||
```
|
||||
|
||||
```rs
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
///
|
||||
/// ```toml,ignore
|
||||
/// egui_extras = { version = "*", features = ["all_loaders"] }
|
||||
/// image = { version = "0.24", features = ["jpeg", "png"] }
|
||||
/// image = { version = "0.24", features = ["jpeg", "png"] } # Add the types you want support for
|
||||
/// ```
|
||||
///
|
||||
/// ⚠ You have to configure both the supported loaders in `egui_extras` _and_ the supported image formats
|
||||
|
||||
Reference in New Issue
Block a user