Package-level declarations

Types

Link copied to clipboard
sealed interface ColorSpaceConversion
Link copied to clipboard

The ImageBitmap interface represents a bitmap image which can be drawn to a canvas without undue latency.

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, Serializable

The ImageData interface represents the underlying pixel data of an area of a canvas element.

Link copied to clipboard
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

Properties

Functions

Link copied to clipboard
inline suspend fun createImageBitmap(image: ImageBitmapSource): ImageBitmap
inline suspend fun createImageBitmap(image: ImageBitmapSource, options: ImageBitmapOptions?): ImageBitmap
inline suspend fun createImageBitmap(image: ImageBitmapSource, sx: Int, sy: Int, sw: Int, sh: Int): ImageBitmap
inline suspend fun createImageBitmap(image: ImageBitmapSource, sx: Int, sy: Int, sw: Int, sh: Int, options: ImageBitmapOptions?): 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>