fromBytes

Creates a new image using the provided bytes by inferring the file format. If the format is known, prefer @link Image.fromPngBytes or @link Image.fromIcoBytes.

Only ico and png are supported (based on activated feature flag).

Note that you need the image-ico or image-png Cargo features to use this API. To enable it, change your Cargo.toml file:

[dependencies]
tauri = { version = "...", features = ["...", "image-png"] }