pub fn image<M>(source: impl IntoImageSource<M>) -> ImageExpand description
Draw an image from any ImageSource: a staged asset name, encoded
bytes, or a decoded Bitmap.
ⓘ
image(res::images::cover) // a staged asset, as it always was
image(png_bytes) // Vec<u8> / Arc<Vec<u8>> the app fetched or picked
image(&bitmap) // one decode, shared by several nodes
image(move || shot.get()) // reactive: swapping the source patches in placeBytes and decoded sources need Cap::ImageDecode; a backend
without it draws nothing rather than guessing. A name still resolves the way it always has,
on every backend.