decode To Bitmap
Decodes a byte array into a bitmap and returns an integer array containing the pixel data.
Used by C++ over JNI to decode images, specifically RiveRenderFactory::decodeImage.
Return
An array of integers where the first two elements are the width and height of the bitmap, followed by the pixel data in ARGB, non-premultiplied format.
Parameters
encoded
The byte array containing the encoded image data.