🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #20243

PICT files

#20243
From: Mr. Science
Date: Tue, 13 Oct 1987 07:57
29 lines
2219 bytes
I am working on an graphics application and wish to be able to read PICT files
(or PICT resources from the clipboard) created by other programs.  I have
the relevant TechNotes (#21 on QuickDraw internal format and #27 on
MacDraw PICT file format).  However, TechNote #21 states that the 
information is for "DEBUGGING PURPOSES ONLY."  The reason being that
a program will not be able to handle "new objects" if they are added at
some future time.

My question is how else can one decipher the information in a PICT file?
Just calling DrawPicture with a handle to the picture will draw the 
picture on the screen, but this doesn't help me in extracting the kind and
location of the individual graphics objects.  If a several rectangles,
ovals, and line segments are in the picture, I want to know the appropriate
screen coordinates of each object.  All this info is in the PICT file,
but it does depend on knowing, for example, that hex code 30 is a
rectangle, with the next 8 bytes giving the coordinates of the corners
of that rectangle.  Should I just ignore the caveat in the TechNote and
parse the PICT file or is there some other clever way of extracting the
information?  (Anyone know if Apple has, in fact, added new objects?)

In keeping with recent requests, please e-mail responses to me and I
will summarize them in a later posting.

Thanks in advance.

  Gregory Dow			ARPA:   campoly@violet.berkeley.edu
  Chemical Engineering Dept.	UUCP:   {uwvax, decvax, ihnp4, ...}!ucbvax
  University of California	          !campoly%violet.berkeley.edu
  Berkeley, CA  94720		BITNET: POLYDOW@UCBCMSA
Technical Details
Message-ID: <5411@jade.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!sdcsvax!ucbvax!jade!violet.berkeley.edu!campoly

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!sdcsvax!ucbvax!jade!violet.berkeley.edu!campoly
From: campoly@violet.berkeley.edu (Mr. Science)
Newsgroups: comp.sys.mac
Subject: PICT files
Message-ID: <5411@jade.BERKELEY.EDU>
Date: Tue, 13-Oct-87 03:57:09 EDT
Article-I.D.: jade.5411
Posted: Tue Oct 13 03:57:09 1987
Date-Received: Thu, 15-Oct-87 02:02:05 EDT
Sender: usenet@jade.BERKELEY.EDU
Reply-To: campoly@violet.berkeley.edu (Mr. Science)
Organization: University of California, Berkeley
Lines: 29