Skip to main content

image

Function image 

Source
fn image(
    painter: &Painter,
    images: &ImageRegistry,
    rect: Rect,
    hash: AssetHash,
) -> Option<Shape>
Expand description

An image filling rect. The texture is pulled from egui’s loader by the URI registered under hash; on the first frames the loader may still be rasterizing, so a repaint is asked for until it is Ready. A hash the registry does not hold is a hand-off the front end dropped: nothing is drawn, and the frame says so.