home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18626 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.6 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!concert!borg!chopin!lari
  2. From: lari@chopin.cs.unc.edu (Humayun Lari)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Reading in jpeg compressed PICT files
  5. Message-ID: <17724@borg.cs.unc.edu>
  6. Date: 19 Nov 92 01:58:15 GMT
  7. References: <1992Nov12.192450.17388@husc3.harvard.edu> <1e0t96INN7ac@terminator.rs.itd.umich.edu>
  8. Sender: news@cs.unc.edu
  9. Organization: The University of North Carolina at Chapel Hill
  10. Lines: 23
  11.  
  12. In article <1e0t96INN7ac@terminator.rs.itd.umich.edu> krk@oit.itd.umich.edu (Kenneth Knight) writes:
  13. >In article <1992Nov12.192450.17388@husc3.harvard.edu> crevier@husc8.harvard.edu (Daniel Crevier) writes:
  14. >>I tried just loading a picture into 
  15. >>a CWindow using the source from tech note 152, and it crashes when doing the
  16. >>DrawPicture call.  Will this not work with JPEG pictures for some reason?
  17. >>[rest deleted]
  18. >
  19. >I'm not sure this will answer your question,but here goes. You will have to
  20. >work with QuickTime.
  21. >[QuickTime info deleted]
  22.  
  23. You should not have to use QuickTime routines to simply draw a PICT file of
  24. any kind, even if QuickTime routines have been used to compress the file.
  25. DrawPicture should work fine as long as QuickTime is installed.
  26.  
  27. It would help if you provided some information about the kind of crash. I
  28. assume you're using the TCL; try calling SetAllocation(kAllocCanFail) before
  29. the DrawPicture call and see if that helps -- CopyBits might be requesting
  30. lots of memory, and that makes the TCL *very* unhappy. You need to restore the
  31. previous allocation setting afterwards, of course.
  32.  
  33. Humayun Lari
  34. (lari@cs.unc.edu)
  35.