Paint program help - drawing rectangles, restoring

BlitzMax Forums/BlitzMax Beginners Area/Paint program help - drawing rectangles, restoring

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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