I have a RasterLayer with an ImageSource. ImagesSource gets updated via: updateimage
This function takes a Bitmap or an Image (which is in itself a Bitmap)
It would be nice if we could also add other types (e.g. PNG) to the ImageSource
Why
A common case where this would be useful is when we want to show external images as a quad on the map. These external images are almost never Bitmaps but most of the time base64 encoded PNGs. So the current workflow is:
Get Base64 Image
Decode Base64 Image into PNG
Create Bitmap from PNG
Pass Bitmap bytes to Imagesource
I would really like to avoid converting images from one common type to another.
New Feature
I have a RasterLayer with an ImageSource. ImagesSource gets updated via: updateimage This function takes a Bitmap or an Image (which is in itself a Bitmap) It would be nice if we could also add other types (e.g. PNG) to the ImageSource
Why
A common case where this would be useful is when we want to show external images as a quad on the map. These external images are almost never Bitmaps but most of the time base64 encoded PNGs. So the current workflow is:
I would really like to avoid converting images from one common type to another.