Using Delphi Tokyo 10.2.3 and targeting Android, I'm creating multiple threads that download PNG images and decode them in the background.
Using TBitmap is not an option due to stability reasons explained here: Getting multi-threaded safe RGBA values from a decoded PNG image running Android
I believe PNG files can be decoded using the JBitmap/JBitmapFactory classes, but I can't find any documentation on how to do this.
My current code downloads the PNG images into a TMemoryStream. I am hoping to find sample code that will take in a TMemoryStream and output a JBitmap.
Something like this:
function DecodeBitmapFromStream(mStream : TMemoryStream) : JBitmap;