Package-level declarations

Types

Link copied to clipboard
sealed interface ColorSpaceConversion
Link copied to clipboard
Link copied to clipboard

Union of:

Link copied to clipboard
open 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
Link copied to clipboard
sealed interface ImageOrientation
Link copied to clipboard
sealed interface PredefinedColorSpace
Link copied to clipboard
sealed interface PremultiplyAlpha
Link copied to clipboard
sealed 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>