So let's say I have a Java application that allows for the drawing of scribbles. However, the way I store the scribbles in memory is by turning the scribble into line segments and storing the two points of each line segment (thereby not actually storing every single pixel coordinate into memory).
Now, I have to be able to erase that scribble...does anyone have any fancy ideas on how this can be done within Java that is efficient. I've thought about turning the scribble back into it's pixel-by-pixel form and working from there, but it seems like the refreshing and redrawing of it is pretty inefficient and quite flickery.
I'm open to suggestions from those that might have a much better idea on this than I do.