Function versatiles::shared::png2img

source ·
pub fn png2img(data: Blob) -> Result<DynamicImage>
Expand description

Decodes a PNG-encoded image from a Blob and returns it as a DynamicImage.

Arguments

  • data - A Blob object containing the PNG-encoded image data.

Returns

A DynamicImage object representing the decoded image.