Image

external class Image : Resource(source)

An RGBA Image in row-major order from top to bottom.

Constructors

Link copied to clipboard
constructor(rid: Double)

Creates an Image from a resource ID. For internal use only.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val rid: Double

Functions

Link copied to clipboard
fun close(): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>

Destroys and cleans up this resource from memory. You should not call any method on this object anymore and should drop any reference to it.

Link copied to clipboard
fun rgba(): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.typedarrays.Uint8Array<ERROR CLASS: Symbol not found for js.buffer.ArrayBuffer>>

Returns the RGBA data for this image, in row-major order from top to bottom.

Link copied to clipboard
fun size(): ERROR CLASS: Symbol not found for js.promise.Promise<tauri/apps/api/ImageSize>

Returns the size of this image.