B4J Question [SOLVED] Free Hand Drawing

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
i am using the example of erel with canvas to trace the mouse movement on a B4xView(Pane) and save it as Bitmap on a B4xImageView
Thi's is the result
B4X:
imgTrace.Bitmap = cvsDrawing.CreateBitmap
1609334393130.png

then I save the image as a blob in a database
B4X:
Dim base as String = Base64EncodeDecodeImage.Base64ImageToString2(imgTrace.Bitmap)
When I reload the image from the database, I find the black background, classic of a PNG with a transparent background.
1609334673699.png

How can i bring back the Bitmap with a white background?
Changing the pixels?
And if before capturing the canvas I transform the bitmap into jpeg

Thanks to all.
 
Top