Struct egui::widgets::Image  [−][src]
pub struct Image { /* fields omitted */ }Expand description
An widget to show an image of a given size.
ui.add(egui::Image::new(my_texture_id, [640.0, 480.0]));
// Shorter version:
ui.image(my_texture_id, [640.0, 480.0]);Se also crate::ImageButton.
Implementations
Select UV range. Default is (0,0) in top-left, (1,1) bottom right.
A solid color to put behind the image. Useful for transparent images.
Multiply image color with this. Default is WHITE (no tint).
Make the image respond to clicks and/or drags.
Consider using ImageButton instead, for an on-hover effect.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Image
impl UnwindSafe for Image
Blanket Implementations
Mutably borrows from an owned value. Read more
