imageBitmapFromImageSource Function
Extract a bitmap from a binary jpeg or png.
imageBitmapFromImageSource(source: ImageSource): Promise<ImageBitmap>
@returns a Promise which resolves to an ImageBitmap containing the uncompressed bitmap image in RGBA format.
Parameter | Type | Description |
---|---|---|
source | ImageSource | The ImageSource containing the binary jpeg or png data. |
Returns - Promise<ImageBitmap>
a Promise which resolves to an ImageBitmap containing the uncompressed bitmap image in RGBA format.
Defined in
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.