Wrap an encoded RGBA DEM grid in an ImageBitmap (one pixel copy, no PNG).
premultiplyAlpha:'none' + colorSpaceConversion:'none' keep the bit-packed
elevation bytes exact (DEM alpha is 255 everywhere, so premultiply would be
lossless anyway — color-space conversion is the one that must be off). Falls
back to an option-less call for engines that reject the options bag.
Parameters
rgba: Uint8ClampedArray
Row-major RGBA bytes, length width*height*4.
width: number
Grid width in pixels.
height: number
Grid height in pixels.
Returns Promise<ImageBitmap>
A fresh bitmap (single-use: MapLibre transfers it to its worker).
Throws
Error if createImageBitmap is unavailable or rejects the image.
Wrap an encoded RGBA DEM grid in an
ImageBitmap(one pixel copy, no PNG).premultiplyAlpha:'none'+colorSpaceConversion:'none'keep the bit-packed elevation bytes exact (DEM alpha is 255 everywhere, so premultiply would be lossless anyway — color-space conversion is the one that must be off). Falls back to an option-less call for engines that reject the options bag.