Drawing an image from a buffer?

1. A concise explanation of the problem you're experiencing.

It seems like all of the options to draw an image on a globe use the paradigm that cesium will load the file (jpg, bmp, etc) from disk for you. I have a buffer that I did some processing on after I loaded the initial image, and I would like to display the geo-rectified result on a globe.

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

No bug, just looking for help! I have no idea where to start.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

We currently have multiple applications that do different processing on geolocated imagery. Each of these applications ends with a bitmap of resultant data. We would like to draw the data on a globe (and sometimes the data isn't square, it becomes an irregular polygon), but we do have the coordinates for each corner. What's the best way to show this on the globe without writing the result to disk and then having cesium load it?

Here is an example of what I'm looking to do: https://pasteboard.co/HzcKliV.png

4. The Cesium version you're using, your operating system and browser.
Cesium 1.48
Windows 10 Enterprise
Chrome v68

Thanks! I'm happy to clarify anything.

Are the applications that generate these bitmap data on the server side or client side?

I’ve got an example of this thread that shows you how to display an image from a live canvas:

https://groups.google.com/forum/#!profile/cesium-dev/APn2wQdZ3vrCeZdMyKJsk0nLn04iSkFvoN-S_-oJY5TT_E1TXalIXH6i0Ls1VHdxQ8D1GhEcSNar/cesium-dev/z42OKD9kVjQ/cL7qcHoxDQAJ

I think you should also be able to load the image into the HTML page and point Cesium to that element to display it, like in this example:

Let me know if that helps.