diff --git a/egui/src/ui.rs b/egui/src/ui.rs index 76278271..d8af7596 100644 --- a/egui/src/ui.rs +++ b/egui/src/ui.rs @@ -1513,8 +1513,8 @@ impl Ui { /// Show an image here with the given size. /// - /// In order to display an image you must first acquire a [`TextureHandle`] - /// using [`Context::load_texture`]. + /// In order to display an image you must first acquire a [`TextureHandle`]. + /// This is best done with [`egui_extras::RetainedImage`](https://docs.rs/egui_extras/latest/egui_extras/image/struct.RetainedImage.html) or [`Context::load_texture`]. /// /// ``` /// struct MyImage { diff --git a/egui/src/widgets/image.rs b/egui/src/widgets/image.rs index 889fbdc9..efef6146 100644 --- a/egui/src/widgets/image.rs +++ b/egui/src/widgets/image.rs @@ -3,8 +3,8 @@ use emath::Rot2; /// An widget to show an image of a given size. /// -/// In order to display an image you must first acquire a [`TextureHandle`] -/// using [`Context::load_texture`]. +/// In order to display an image you must first acquire a [`TextureHandle`]. +/// This is best done with [`egui_extras::RetainedImage`](https://docs.rs/egui_extras/latest/egui_extras/image/struct.RetainedImage.html) or [`Context::load_texture`]. /// /// ``` /// struct MyImage {