Important: The information in this document is obsolete and should not be used for new development.
 
 
 
 
Picture Opcode Data Types
The picture opcodes use the data types that are summarized in Table A-1.In addition, some picture opcode types, such as
BkPixPat, may use thePixMap,ColorTable, andPixDatadata types, which makes the length of these opcodes quite variable. ThePixMaprecord andColorTablerecord are described in the chapter "Color QuickDraw" in this book. The following pseudocode describes thePixDatadata type:
PixData: {pseudocode describing the PixData data type} IF rowBytes < 8 THEN data is unpacked; data size = rowBytes*(bounds.bottom-bounds.top); IF rowBytes >= 8 THEN data is packed; image contains (bounds.bottom-bounds.top) packed scanlines; packed scanlines are produced by the PackBits routine; each scanline consists of [byteCount] [data]; IF rowBytes > 250 THEN byteCount is a word; ELSE byteCount is a byte. END;