Module image

Source
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()
}

Modules§

viewer
Zoom and pan on an image.

Structs§

Image
A frame that displays an image while keeping aspect ratio.
Style
The style of an Image.
Viewer
A frame that displays an image with the ability to zoom in/out and pan.

Enums§

FilterMethod
Image filtering strategy.
Handle
A handle of some image data.

Traits§

Catalog
The theme catalog of an Image.

Functions§

draw
Draws an Image
layout
Computes the layout of an Image.
viewer
Creates a new Viewer with the given image Handle.

Type Aliases§

StyleFn
A styling function for an Image.