home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 21998 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.1 KB

  1. Path: sparky!uunet!usc!news.service.uci.edu!ucivax!gateway
  2. From: kanderso@liege.ICS.UCI.EDU (Kenneth Anderson)
  3. Subject: I've got a handle, now I want a PICT.
  4. Message-ID: <9301221923.aa23160@Paris.ics.uci.edu>
  5. Newsgroups: comp.sys.mac.programmer
  6. Lines: 19
  7. Date: 23 Jan 93 03:24:06 GMT
  8.  
  9. I want to start fooling around with PICTs from within my own applications.
  10. So I have written a program which allows you to open a file of type
  11. PICT.  Unfortunately, I don't know how to access the PICT data once I have
  12. opened the file, allocated a new handle and read in the data fork.  I tried
  13. casting the handle to a PicHandle and then I tried passing that to
  14. GetPictInfo, but GetPictInfo returned pictureDataErr.
  15.  
  16. Can anyone help me out?  Since PicHandle didn't work, what type should I
  17. try casting the generic handle to?
  18.  
  19. Is there a Technote on this subject?
  20.  
  21. Let me also tell you my intentions, I eventually want to display a 32 by
  22. 32 (pixels) portion of the PICT and let the user roam around the PICT using
  23. the arrow keys.  In order to do this, will I need a PixMapHandle instead?
  24.  
  25. Thanks in advance,
  26.  
  27. Ken Anderson
  28.