Skip to main content

ExternalImageSource

Type Alias ExternalImageSource 

pub type ExternalImageSource = fn(u64) -> Option<Vec<u8>>;
Expand description

Supplies the pixels of an image drawn with an empty blob — one whose pixels live in a texture overridden on another renderer (see Renderer::override_image) — to a renderer that has no override for it. Given the blob id, it returns the image’s tightly packed pixels.