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:
@@ -448,7 +448,8 @@ pub fn warn_if_debug_build(ui: &mut crate::Ui) {
|
||||
/// ui.image(egui::include_image!("../assets/ferris.png"));
|
||||
/// ui.add(
|
||||
/// egui::Image::new(egui::include_image!("../assets/ferris.png"))
|
||||
/// .rounding(egui::Rounding::same(6.0))
|
||||
/// .max_width(200.0)
|
||||
/// .rounding(10.0),
|
||||
/// );
|
||||
///
|
||||
/// let image_source: egui::ImageSource = egui::include_image!("../assets/ferris.png");
|
||||
|
||||
@@ -1560,7 +1560,8 @@ impl Ui {
|
||||
/// ui.image(egui::include_image!("../assets/ferris.png"));
|
||||
/// ui.add(
|
||||
/// egui::Image::new(egui::include_image!("../assets/ferris.png"))
|
||||
/// .rounding(egui::Rounding::same(6.0))
|
||||
/// .max_width(200.0)
|
||||
/// .rounding(10.0),
|
||||
/// );
|
||||
/// # });
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user