home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14638 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.8 KB

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