home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!caen!batcomputer!cornell!csuley
- From: csuley@cs.cornell.edu (Christopher Suley)
- Subject: CopyBits question
- Message-ID: <1992Sep11.001409.13276@cs.cornell.edu>
- Organization: Cornell Univ. CS Dept, Ithaca NY 14853
- Date: Fri, 11 Sep 1992 00:14:09 GMT
- Lines: 19
-
- I have a color image residing in an offscreen pixmap that I want to
- CopyBits to the screen. Not too hard, but there's a catch. I want
- all of the white pixels in the offscreen image to become a certain
- color when they appear on the screen.
-
- Using transparent mode doesn't work, because it leaves what was on
- the screen beforehand in place, and that isn't what I want. I
- suppose I could just do a FillRect with the color I want, and then
- a CopyBits in transparent mode, but I was hoping to be able to do
- everything in one step. (it's an animated image, so filling the
- rectangle then copying would introduce some flickering as the area
- was cleared, then redrawn each time)
-
- Setting the background color to the color I want would work, but it
- would colorize the rest of the image. (right? I am programming on
- an SE, so this color stuff is mostly a mental experiment until I
- run up the massive hill to school and test it on a color computer
- there... talk about an expensive code/compile/run cycle. ;)
-
-