|
-
Mar 26th, 2001, 09:26 AM
#1
Thread Starter
New Member
Monday March 26, 2001
I'm working on a drawing program in which the user has the option of changing the background color of the picture box.
Problem: when the user changes the picture box's background color, all work is lost. Every line, scribble, shape and doodle are forever vanished! Is there a way to change a picture box's background color while preserving one's work?
Sincerely,
danny7
[email protected]
-
Mar 26th, 2001, 12:38 PM
#2
I dont think so, at least not one that i can think of, except looping through each pixel, and if it is the old background color, set it to the new color. Its slow, but it will work.
Z.
-
Mar 26th, 2001, 02:01 PM
#3
PowerPoster
You could also BitBlt is to a temporary buffer, then change the color and BitBlt it back... would be faster I think.
-
Mar 26th, 2001, 06:13 PM
#4
Good Ol' Platypus
Try recording an array of operations, one that has all of the points of every operation done, then when the bg colour is redrawn then just draw them back on!
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|