home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!spool.mu.edu!agate!netsys!pagesat!a2i!mike
- From: mike@rahul.net (Mike Smithwick)
- Subject: Getting the colormap from a spooled PICT image
- Message-ID: <Bzp3xs.8AG@rahul.net>
- Sender: news@rahul.net (Usenet News)
- Nntp-Posting-Host: bolero
- Organization: a2i network
- Distribution: worwld
- Date: Wed, 23 Dec 1992 04:46:40 GMT
- Lines: 41
-
- []
-
- I am spooling large PICT bitmapped images from the drive as
- described in the UMPG, p. 197FF. I'm not exactly clear as to
- what is happening when, but I get some sort of pict handle
- that let's DrawImage() blat the picture in the window.
-
- I assume that DrawImage() handles the memory allocation stuff
- automatically, etc. to permit me to read in the data. Anyway, I take
- that pict handle after the call to DrawImage, call GetPictInfo() and
- get garbage back. Some of the PictInfo data is correct, the rect size, etc,
- but it also tells me that the image depth is only 1 or 0 bits, that
- the number of unique colors is only 1 or 2, and so on.
-
- The sequence of calls is :
-
- /* set up stdprocs for the spool function */
-
- DrawImage(pict,&rect);
-
- GetPictInfo(pict,&pi,...);
-
- etc...
-
- So, the question is, is DrawImage, when spooling the data from the drive
- creating a full pict in memory that GetPictInfo() can use? Or is the pict
- data incomplete so as to screw up GetPictInfo?
-
- And if so, how can I get the colormap info from a spooled file, so I don't
- have to load the full image into memory (which defeats the whole process
- of spooling).
-
- mike
-
-
-
- --
- This message brought to you by the Happy Fun Ball! It's Happy! It's
- fun!! It's the HAPPY FUN BALL!!! (Still legal in 16 states)
- *** Mike Smithwick - mike@rahul.net
- *** No disclaimer is necessary since I only work for myself, HA! HA! HA! HA!
-