Package-level declarations

Types

Link copied to clipboard
sealed external interface ColorSpaceConversion
Link copied to clipboard
external interface ImageBitmapOptions
Link copied to clipboard
external interface ImageBitmapSource

Union of:

Link copied to clipboard
open external class ImageData(sw: Int, sh: Int, settings: ImageDataSettings = definedExternally) : ImageBitmapSource, TexImageSource, GPUCopyExternalImageSource

The underlying pixel data of an area of a element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().

Link copied to clipboard
external interface ImageDataSettings
Link copied to clipboard
sealed external interface ImageOrientation
Link copied to clipboard
sealed external interface PredefinedColorSpace
Link copied to clipboard
sealed external interface PremultiplyAlpha
Link copied to clipboard
sealed external interface ResizeQuality

Functions

Link copied to clipboard
suspend external fun createImageBitmap(image: ImageBitmapSource, options: ImageBitmapOptions? = definedExternally): ImageBitmap
suspend external fun createImageBitmap(image: ImageBitmapSource, sx: Int, sy: Int, sw: Int, sh: Int, options: ImageBitmapOptions? = definedExternally): ImageBitmap
Link copied to clipboard
external fun createImageBitmapAsync(image: ImageBitmapSource, options: ImageBitmapOptions? = definedExternally): Promise<ImageBitmap>
external fun createImageBitmapAsync(image: ImageBitmapSource, sx: Int, sy: Int, sw: Int, sh: Int, options: ImageBitmapOptions? = definedExternally): Promise<ImageBitmap>