Skip to main content

Functions #

f
createImageBitmap

Create a new ImageBitmap object from a given source.

    Interfaces #

    I
    v
    GPUCanvasContext

    The rendering context that presents WebGPU-rendered images on an OffscreenCanvas. Obtained from OffscreenCanvas.getContext with the "webgpu" context id.

    I
    v
    ImageBitmap

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

    I
    v
    ImageBitmapRenderingContext

    A rendering context that displays the contents of an ImageBitmap on an OffscreenCanvas. Obtained from OffscreenCanvas.getContext with the "bitmaprenderer" context id.

    I
    ImageEncodeOptions
    No documentation available
    I
    v
    OffscreenCanvas

    A canvas that can be rendered to off the main thread and without being attached to the DOM. It exposes drawing contexts via OffscreenCanvas.getContext and can produce a Blob or ImageBitmap from its contents.

    Type Aliases #

    T
    ColorSpaceConversion

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

      T
      GPUCanvasAlphaMode
      No documentation available
        T
        GPUPresentMode
        No documentation available
          T
          ImageBitmapSource

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

            T
            ImageOrientation

            Specifies how the bitmap image should be oriented.

              T
              OffscreenRenderingContext
              No documentation available
                T
                OffscreenRenderingContextId
                No documentation available
                  T
                  PremultiplyAlpha

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

                    T
                    ResizeQuality

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

                      Did you find what you needed?

                      Privacy policy