Hi ddahan,
I had a similar problem and solved it by drawing the line on the ForeLayer and erased that when I wanted to remove the line. Search for the thread "Frame object" to see the whole discussion. Success
Harry
What do you mean with 'erase a line' on a BitmapEx object?
If you mean remove a drawn line and get back the previous colors the pixels of the line had before, this is not possible.
You can only draw a line with a given color.
But you can 'play' with the transparent color of the form's Forelayer.
What exactly do you want to do ?
Best regards.
I wouln't use an Image control on a Panel, but draw the image directly onto the form and use the form's forelayer.
You could have a look at the http://www.b4x.com/forum/tutorials/5191-graphics-tutorial.html
Chapter 'Basic graphics/Drawing on bitmap', Rubberbanding in the middle of the page.
Attached the sample program from the tutorial.
Best regards.