I'm struggling to reset a bitmap linked to a canvas once I've drawn on it. I open a form from another form and set the bitmap using the following code in the Show part of the form:
I then draw a line on the image and close the form. When I reopen that form later the image is still there with the line drawn on it. When I check the IsInitialized boolean I see the bitmap is still Initialized. How do I reset that bitmap so that it will always load the screen with a fresh image?
B4X:
bmpImage = xui.LoadBitmapResize(File.DirAssets, "myImage.png", pnllWidth, pnlHeight, False)