Function loadAndCreateBitmapImage

  • Loads and creates a bitmap image from the given source URL.

    Parameters

    • src: string

      The source URL of the image.

    • OptionalcolorSpaceConversion: ColorSpaceConversion = 'none'

      The color space conversion option. Default is 'none'.

    • OptionalpremultiplyAlpha: PremultiplyAlpha = 'premultiply'

      The PremultiplyAlpha option. Default is 'none'.

    Returns Promise<ImageBitmap>

    A Promise that resolves to the created ImageBitmap.