Skip to main content
Canvas - Web documentation

Functions

f
createImageBitmap

Create a new ImageBitmap object from a given source.

Interfaces

I
v
ImageBitmap

ImageBitmap interface represents a bitmap image which can be drawn to a canvas.

Type Aliases

T
ColorSpaceConversion

Specifies whether the image should be decoded using color space conversion.Either none or default (default). The value default indicates thatimplementation-specific behavior is used.

T
ImageBitmapSource

The ImageBitmapSource type represents an image data source that can beused to create an ImageBitmap.

T
ImageOrientation

Specifies how the bitmap image should be oriented.

T
PremultiplyAlpha

Specifies whether the bitmap's color channels should be premultiplied bythe alpha channel.

T
ResizeQuality

Specifies the algorithm to be used for resizing the input to match theoutput dimensions. One of pixelated, low (default), medium, or high.