home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!baldrick.medicine.adelaide.edu.au!mpradhan
- From: mpradhan@medicine.adelaide.edu.au (Malcolm Pradhan)
- Newsgroups: comp.sys.mac.programmer
- Subject: GetPictInfo bug with QuickTime Picts?
- Message-ID: <8350@sirius.ucs.adelaide.edu.au>
- Date: 28 Aug 92 00:12:22 GMT
- Sender: news@ucs.adelaide.edu.au
- Organization: Faculty of Medicine, University of Adelaide
- Lines: 30
- Nntp-Posting-Host: baldrick.medicine.adelaide.edu.au
- X-UserAgent: Nuntius v1.1.1d9
- X-XXMessage-ID: <A6C3A66612013808@baldrick.medicine.adelaide.edu.au>
- X-XXDate: Fri, 28 Aug 92 17:46:14 GMT
-
- Hello all,
-
- I'm using GetPictInfo to request a 256 colour palette from a 32 bit
- image. Normally this works fine and I simply set the window's palette
- to the one returned by GetPictInfo and copybits using ditherCopy, ie.
-
- err= GetPictInfo((PicHandle)pictH, &pictInfoRec, returnPalette,
- 256, popularMethod, 0);
- SetPalette(myWindow, pictInfoRec.thePalette, TRUE);
-
- I have found that if the PICT is quicktime compressed (JPEG, Video)
- no palette is returned and no error is signalled from the GetPictInfo
- call - pretty frustrating.
-
- The only way I can see of getting around this is to create an gworld,
- draw the compressed PICT into it and then GetPixMapInfo. Tedious and
- memory intensive!
-
- Has anyone found a way of getting a clut or palette from a QT compressed
- PICT? Is this a known bug which will soon be fixed in System 7.1 and
- QT 1.5? :-)
-
- Regards
- Malcolm
- _________________________________________________________________
- Malcolm Pradhan
- Medical Computing, Faculty of Medicine _--_|\
- University of Adelaide, South Australia / \
- InterNet: mpradhan@medicine.adelaide.edu.au \_.--x_/
- Fax: +618 223 2076 :x marks the spot: v
-