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