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