Results 1 to 4 of 4

Thread: My Drawing Project Just Kills Me! Help!

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Madison WI
    Posts
    5

    Talking

    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]

  2. #2
    Guest
    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.

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    You could also BitBlt is to a temporary buffer, then change the color and BitBlt it back... would be faster I think.

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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
  •  



Click Here to Expand Forum to Full Width