Skip to main content

canvas_pixels

Function canvas_pixels 

Source
fn canvas_pixels(decoder: &impl ImageDecoder, budget: u64) -> Result<u64>
Expand description

Pixels one composited frame of this source occupies.

A canvas the budget cannot afford even once is refused here, which is before the decoder has been advanced onto it and so before it has allocated one.