Working on an app that creates bitmaps and haven't run across how to set the buffer to the image created. Most literature and forum threads focus on loading a bitmap from a file directory and loading the buffer from that. How can I load the bitmap my app has drawn into the buffer?
B4X:
Dim Buffer() As Byte
Dim OutputStream1 As OutputStream
OutputStream1.InitializeToBytesArray(1000)
Buffer=? (That new bitmap the app has drawn)
OutputStream1.WriteBytes(Buffer, 0, Buffer.Length)