I have a TImage bitmap on a form, and a TPaintBox with the same dimensions. The user draws some polylines on the paintbox canvas. Using paintbox means they can "erase" a line if needed and the backgound stays visible.
What I see on the screen is the background image with the lines drawn on top - good! When the user is happy, I need to store the result (to a file) which includes everything I see on the screen (f.e. background and polylines).
So how do I make the composite image to save a file - combining the image canvas and paintbox canvases somehow?
Or must I store all the drawing commands and "replay them" on the image canvas?