Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Environment and Utilities /


Chapter 7 - QuickDraw GX Stream Format

This chapter describes the format of the compressed data stream that results when the QuickDraw GX GXFlattenShape function is used. It also describes the use of such data streams by print files and portable digital documents (PDDs). Read this chapter if you need to uncompress QuickDraw GX stream format data and cannot use the QuickDraw GX GXUnflattenShape function.

Before reading this chapter, you should be familiar with the information in the chapters "Introduction to QuickDraw GX Objects" and "Shape Objects" in Inside Macintosh: QuickDraw GX Objects.

The GXFlattenShape and GXUnflattenShape functions and additional information about the objects contained in the data stream are described in Inside Macintosh: QuickDraw GX Objects. For more information on graphic shapes, see the shape-specific chapters in Inside Macintosh: QuickDraw GX Graphics. For more information on typographic shapes, see the shape-specific chapters in Inside Macintosh: QuickDraw GX Typography. For more information on print files and portable digital documents, see the chapter "Advanced Printing Features" of Inside Macintosh: QuickDraw GX Printing.

This chapter first describes the QuickDraw GX stream format, print file organization, and portable digital documents. It then shows how you can


Chapter Contents
About QuickDraw GX Stream Format
Characteristics
Stream Design
Operation Opcode Byte
Operation Opcode
Record Size
Data Type Opcode Byte
Compression Type Opcode
Data Type Opcode
Data Type Opcodes for a New Object
Data Type Opcodes to Modify a Shape Object
Data Type Opcodes to Modify a Style Object
Data Type Opcodes to Modify an Ink Object
Data Type Opcodes to Modify a Color Set Object
Data Type Opcodes to Modify a Color Profile Object
Data Type Opcodes to Modify a Transform Object
Data
Omit Byte Masks and Omit Byte Shifts
Header Data
New Shape Object Data
Empty Shape Data
Point Shape Data
Line Shape Data
Curve Shape Data
Rectangle Shape Data
Polygon Shape Data
Path Shape Data
Bitmap Shape Data
Text Shape Data
Glyph Shape Data
Layout Shape Data
Full Shape Data
Picture Shape Data
Modified Shape Object Data
Attributes Data
Tag Data
Fill Data
New Style Object Data
Modified Style Object Data
Attributes Data
Tag Data
Curve Error Data
Pen Data
Join Data
Dash Data
Caps Data
Pattern Data
Text Attributes Data
Text Size Data
Font Data
Text Face Data
Platform Data
Font Variations Data
Run Controls Data
Run Priority Justification Override Data
Run Glyph Justification Overrides Data
Run Glyph Substitutions Data
Run Features Data
Run Kerning Adjustments Data
Style Justification Data
New Ink Object Data
Modified Ink Object Data
Attributes Data
Tag Data
Color Data
Transfer Mode Data
New Object Transform Data
Modified Transform Object Data
Reserved Opcode for Modified Transform Data
Tag Data
Clip Data
Mapping Data
Part Mask Data
Tolerance Data
New Color Profile Object Data
Modified Color Profile Object Data
Reserved Opcode for Modified Color Profile Data
Color Profile Tag Data
New Color Set Object Data
Modified Color Set Object Data
Reserved Opcode for Modified Color Set Data
Color Set Tag Data
New Tag Object Data
New Bit Image Object Data
New Font Name Data
New Trailer Object Data
About Print Files and Portable Digital Documents
Print Files
Portable Digital Documents
Using QuickDraw GX Stream Format
Flattening Shapes With GraphicsBug
Analyzing the Data Streams of Flattened Shapes
Creating a Picture With Seven Shapes
Analyzing a Flattened Line Shape
Analyzing a Flattened Rectangle Shape
Analyzing a Flattened Curve Shape
Analyzing a Flattened Path Shape
Analyzing a Flattened Text Shape
Analyzing a Flattened Polygon Shape
Analyzing a Flattened Bitmap Shape
Obtaining Data From a Print File
QuickDraw GX Stream Format Reference
Opcode Constants and Data Types
Operation Opcode Byte
Data Type Opcode Byte
Generic Data Opcode
Bit Image Compression Opcode Byte
Modified Shape Data Opcodes
Modified Style Data Opcodes
Modified Ink Data Opcodes
Modified Color Set Data Opcodes
Modified Color Profile Data Opcodes
Modified Transform Data Opcodes
Bit Image Compression Opcodes
Flatten Header Bytes
Style Object Omit Byte Constants and Data Types
Dash Style Omit Byte Masks and Shifts
Pattern Style Omit Byte Masks and Shifts
Join Style Omit Byte Masks and Shifts
Cap Style Omit Byte Masks and Shifts
Text Face Style Omit Byte Masks and Shifts
Face Layer Omit Byte Masks and Shifts
Ink Object Omit Byte Constants and Data Types
Colors Omit Byte Masks and Shifts
Transfer Omit Byte Masks and Shifts
Transfer Component Omit Byte Masks and Shifts
Shape Object Omit Byte Constants and Data Types
Path Shape Omit Byte Masks and Shifts
Bitmap Shape Omit Byte Masks and Shifts
Bit Image Omit Byte Masks and Shifts
Text Shape Omit Byte Masks and Shifts
Glyph Shape Omit Byte Masks and Shifts
Layout Shape Omit Byte Masks and Shifts
Picture Shape Omit Byte Masks and Shifts
QuickDraw GX Stream Format Summary
Opcode Constants and Data Types
Operation Opcode Byte
Data Type Opcode Byte
Generic Data Opcode
Modified Shape Data Opcodes
Modified Style Data Opcodes
Modified Ink Data Opcodes
Modified Color Set Data Opcodes
Modified Color Profile Data Opcodes
Modified Transform Data Opcodes
Bit Image Compression Opcodes
Two Bit Compression Values
Flatten Header Bytes
Style Object Omit Byte Constants and Data Types
Dash Style Omit Byte Masks and Shifts
Pattern Style Omit Byte Masks and Shifts
Join Style Omit Byte Masks and Shifts
Cap Style Omit Byte Masks and Shifts
Text Face Style Omit Byte Masks and Shifts
Face Layer Omit Byte Masks and Shifts
Ink Object Omit Byte Constants and Data Types
Colors Omit Byte Masks and Shifts
Transfer Omit Byte Masks and Shifts
Transfer Component Omit Byte Masks and Shifts
Shape Object Omit Byte Constants and Data Types
Path Shape Omit Byte Masks and Shifts
Bitmap Shape Omit Byte Masks and Shifts
Bit Image Omit Byte Masks and Shifts
Text Shape Omit Byte Masks and Shifts
Glyph Shape Omit Byte Masks and Shifts
Layout Shape Omit Byte Masks and Shifts
Picture Shape Omit Byte Masks and Shifts

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996