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

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!spool.mu.edu!umn.edu!csus.edu!netcom.com!james
  2. From: james@netcom.com (James L. Paul)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: PICT2 -> Bitmap shortcuts?
  5. Message-ID: <1992Dec19.004247.21482@netcom.com>
  6. Date: 19 Dec 92 00:42:47 GMT
  7. References: <1992Dec18.205429.4262@oakhill.sps.mot.com>
  8. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  9. Lines: 24
  10.  
  11. I need to take a PICT with any number of objects, and end up with a region
  12. than encloses all the non-white objects. Oh yeah.. at any bit depth.
  13.  
  14. Currently, I'm drawing the PICT offscreen (either a GWorld, or not...) and
  15. then getting a bitmap mask to give to BitMapToRegion. I'd really like to do
  16. it without the overhead to speed things up, take less memory, etc.
  17.  
  18. Anyone got a good idea for a slick way to get a bitmap mask quickly from
  19. a color PICT without setting up and then disposing offscreen stuff? 
  20.  
  21. On a related topic, (I haven't looked into this yet, but...) Is there a
  22. simple way to grab a mask of a pixmap that gets _all_ of the non-white
  23. pixels, not just the darker colors? I'm sure there's a straightforawrd way,
  24. I just haven't thought of how to keep CopyBits from mapping lightly saturated
  25. colors to white yet... (grrrrr.) ;)
  26.  
  27.  
  28. -- 
  29. James L. Paul
  30.  
  31. Internet:    netcom!james@apple.com | AppleLink: D1231 | CompuServe: 72767,3436
  32. UUCP:   {apple,amdahl}!netcom!james | GEnie:    J.PAUL | Voice:    607 776-3070
  33. Packet: N6SIW@WB2PSI.#WNY.NY.USA.NA | Delphi:   JLPaul | Home Fax: 607 776-3070
  34. America Online:   JLPaul or Memorex | BIX:      JLPaul | Prodigy:       PWTB41A
  35.