CompuServe Messages

Non-Mac PICT Parsing?

    07-Mar-91 07:59:56
Fm: Ed Ludwig 71210,1545
To: Syndesis 76004,1763
John, The information to parse PICT1 and PICT2 are, unfortunately, scattered over several sources. PICT1 is covered in a tech note and PICT2 is covered in IM 5. The new 32-Bit opcodes are covered in the docs for 32-Bit QuickDraw, which are in IM 6 and probably are available from APDA (maybe). Most Mac programmers that need to figure out what kind of primitives are inside a PICT dont have to deal with the PICT directly, they let QuickDraw play the picture back (obviously on the Mac) and set up official hooks (QDProcs – see IM 1) that QuickDraw uses to draw the basic primitives. These hooks are called as each primitive in the PICT is scanned by QuickDraw. This lets Mac programmer know the contents of a PICT without having to understand the PICT data format. The reason that I know about this is because I had to write a PICT1 & PICT2 parser for a commercial product that I wrote. I needed a routine that would scan a file for arbitray clumps of QuickDraw pictures. Since I don't know where the PICT data is in the file (if it's there at all), I have to search and validate anything that might look like a pict. Believe me, the routine was a pain to write. Taking this route means that I will have to keep up with any new opcodes that Apple adds in the future. Ed Ludwig, Abbott Systems Read action !re Enter reply. (/EXIT when done) 1: Thanks for your help. What product did id incorporates your parser? 2: Also, you're the second person to refer me to Inside Mac Vol 5.6.,, w 3: hich isn't out yet. Do some people have pre-release copies? 4: . 5: /post Message # 41321 posted