home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 20113 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.3 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mojo.eng.umd.edu!russotto
  2. From: russotto@eng.umd.edu (Matthew T. Russotto)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: PICT2 -> Bitmap shortcuts?
  5. Message-ID: <1992Dec20.160018.27954@eng.umd.edu>
  6. Date: 20 Dec 92 16:00:18 GMT
  7. References: <1992Dec18.205429.4262@oakhill.sps.mot.com> <1992Dec19.004247.21482@netcom.com>
  8. Organization: Project GLUE, University of Maryland, College Park
  9. Lines: 17
  10.  
  11. In article <1992Dec19.004247.21482@netcom.com> james@netcom.com (James L. Paul) writes:
  12.  
  13. >On a related topic, (I haven't looked into this yet, but...) Is there a
  14. >simple way to grab a mask of a pixmap that gets _all_ of the non-white
  15. >pixels, not just the darker colors? I'm sure there's a straightforawrd way,
  16. >I just haven't thought of how to keep CopyBits from mapping lightly saturated
  17. >colors to white yet... (grrrrr.) ;)
  18.  
  19. Oops, my solution won't work for 16 and 24 bit depth.  You'll have to
  20. create a destination GDevice or GWorld instead of a bit map.  Then
  21. either make a bogus inverse table or put in your own color matching
  22. routines.
  23. -- 
  24. Matthew T. Russotto    russotto@eng.umd.edu    russotto@wam.umd.edu
  25. Some news readers expect "Disclaimer:" here.
  26. Just say NO to police searches and seizures.  Make them use force.
  27. (not responsible for bodily harm resulting from following above advice)
  28.