The following code creates a PNG image on which you can draw.
How do you make the image transparent (color white for example) ?
Thanks in advance
B4X:
Dim C As Canvas
Dim BMP As Bitmap
BMP.InitializeMutable(1000,600)
C.Initialize2 (BMP)
………………
…………………………..
C.DrawLine (...........
……………………
……………………
Dim Out As OutputStream
Out = File.OpenOutput (File.DirRootExternal , “x.png”,False )
C.Bitmap.WriteToStream (Out,100,"PNG")
Out.Close
Thanks in advance