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

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.

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.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…