pub fn draw_block_image(
bbox: Rect,
asset: Option<&Asset>,
painter: &mut Style<'_, impl Renderer>,
)Expand description
Draw asset stretched to fill bbox. The image’s intrinsic aspect ratio
is not preserved — the box is resized freely by its corners. The painter
resolves and caches the image; an asset the document does not hold
(None, which the zero icon’s null hash also reads as) or one that fails
to parse draws nothing.