Skip to main content

raster_image_for_attribute

Function raster_image_for_attribute 

Source
pub fn raster_image_for_attribute(
    context: &Context,
    name: &str,
    value: &str,
) -> Option<RasterImageData>
Expand description

Read an embedder-marked raster from a native JavaScript callback.

The document remains on its owning thread. Cloning the raster shares its decoded Blob; this does not copy the pixel allocation or perform layout.