Thanks for the replies:
tonyg
That's neat and you're right I'm not using CLS. Practically I can't find a way of storing the background before the rect is being drawn, which is kind of my problem. Should I just store the whole canvas into a buffer and then re-store the canvas in the buffer after the mouse is released?
so
1. CLS
2. Draw contents of buffer on canvas (DrawImage)
3. Draw rect
4. Flip
5. Loop to 1
When mouse is released store canvas using GrabImage. on a hires screen that can be a massive canvas to grab and draw each loop.
Thanks
tonyg
That's neat and you're right I'm not using CLS. Practically I can't find a way of storing the background before the rect is being drawn, which is kind of my problem. Should I just store the whole canvas into a buffer and then re-store the canvas in the buffer after the mouse is released?
so
1. CLS
2. Draw contents of buffer on canvas (DrawImage)
3. Draw rect
4. Flip
5. Loop to 1
When mouse is released store canvas using GrabImage. on a hires screen that can be a massive canvas to grab and draw each loop.
Thanks