Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / How to save colors of pixels?

Author
Message
mackncheesiest
14
Years of Service
User Offline
Joined: 8th Sep 2010
Location:
Posted: 9th Sep 2010 06:55
I'm making a paint application and I have it so that it goes to a separate screen to choose what color you want, but the problem I'm having is that I need a way so that it saves the state of the screen when it goes to the color selection screen because the method I used involves clearing the screen and it is useless changing colors if your drawing is gone every time you change. I'm sort of just learning by experimentation and exploring a tutorial pdf I found, so I'm sure there's much more efficient ways I could do this, but anyways, could anyone help?
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 9th Sep 2010 21:08
You could use GET IMAGE to grab a copy of the screen before you mess it up, then PASTE IMAGE to put it back. Also, you could use COPY BITMAP to store the screen, then copy it back after your color menu.

Check both those out in the help files for details on how to use them.

Good luck!

mackncheesiest
14
Years of Service
User Offline
Joined: 8th Sep 2010
Location:
Posted: 10th Sep 2010 06:42
Awesome, I got it working. Thanks

Login to post a reply

Server time is: 2024-11-24 11:51:24
Your offset time is: 2024-11-24 11:51:24