i have a TImage with a bitmap loaded on it. Now i need to draw a poligon on top of the bitmap.
The functionality is exactly the same as MS Paint, where you load in a bitmap and select the poligon tool and start drawing.
My problem is:
in the OnMouseMove event, i am using
to give the user a preview of where the new line is going to be. however, I need to clear the previous preview line and draw the new one. how does MS Paint do it? It is almost like I need an UndoLine method.
I could write an UndoLine method, but how do i then specify a clear color to clear the previous line?
i must be using a too difficult approach.