Available on crate feature
image
only.Expand description
Images display raster graphics in different formats (PNG, JPG, etc.).
§Example
use iced::widget::image;
enum Message {
// ...
}
fn view(state: &State) -> Element<'_, Message> {
image("ferris.png").into()
}

Re-exports§
pub use viewer::Viewer;
Modules§
- viewer
- Zoom and pan on an image.
Structs§
Enums§
- Filter
Method - Image filtering strategy.
- Handle
- A handle of some image data.
Traits§
Functions§
- draw
- Draws an
Image
- layout
- Computes the layout of an
Image
. - viewer
- Creates a new
Viewer
with the given imageHandle
.