FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

DRAWING

Decode QuickDraw opcodes


My program draws some polygons and saves them as PICT files. I want the capability to edit them later, so I need access to the coordinates of the vertices. At the moment I'm writing a function that saves these numbers into the 512 byte header of the file. However I would much prefer to get this info straight from the Quickdraw "recording". Not only would this be more elegant but would mean I could read other PICT files. Could anyone point me in the right direction ?

Paul


You need to look at the appendix called "Picture Opcodes" in "Inside Macintosh. On the Internet, it's here:

http://dev.info.apple.com/techpubs/mac/QuickDraw/QuickDraw-458.html

I also have an unpolished FB program which will "disassemble" and list the opcodes in a PICT file, which you might find handy during your experimentation. I'll send it to you if you want.

Rick