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 without undue latency. It can be created from a variety of source objects using the Window.createImageBitmap() or WorkerGlobalScope.createImageBitmap() factory method. ImageBitmap provides an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL.

Link copied to clipboard
Link copied to clipboard

Union of:

Link copied to clipboard

The ImageData interface represents the underlying pixel data of an area of a 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>