fromPath
fun fromPath(path: String): ERROR CLASS: Symbol not found for js.promise.Promise<tauri/apps/api/Image>(source)
Creates a new image using the provided path.
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"] }Content copied to clipboard