---
title: QuickTime Vector Graphics
framework: quicktime
role: article
path: apple-archive/documentation/QuickTime/RM/LegacyAPIs/Vectors/rmVectors
---

# QuickTime Vector Graphics

Explains the legacy technology for making mathematical descriptions of images.

## About QuickTime Vectors

[Inside Macintosh: QuickTime Reference](../../../../REF/refVectors.2.htm) describes the basic characteristics of QuickTime vectors, how they are constructed using QuickTime atoms, and how they are related to QuickDraw GX.

## QuickDraw GX Concepts and Structures

[Inside Macintosh: QuickTime Reference](../../../../REF/refVectors.4.htm) describes the QuickDraw GX concepts and data structures that you need to understand in order to work with QuickTime vectors.

A QuickTime vector corresponds to a QuickDraw GX path object, which is one of the geometric shapes supported by QuickDraw GX. Path objects are closely related to, and are in some cases defined by, other QuickDraw GX geometric shapes, such as points and curves.

- [Shape Objects](../../../../REF/refVectors.5.htm) - [Supporting Objects](../../../../REF/refVectors.6.htm) - [QuickDraw GX Coordinates](../../../../REF/refVectors.a.htm) - [Geometry Space](../../../../REF/refVectors.b.htm) - [Summary Table and Diagram of QuickDraw GX Objects](../../../../REF/refVectors.c.htm) - [Shape Properties](../../../../REF/refVectors.d.htm) - [Path Shapes](../../../../REF/refVectors.11.htm) - [Creating and Drawing Paths](../../../../REF/refVectors.12.htm) - [Geometric Properties of Style Objects](../../../../REF/refVectors.16.htm) - [Color in QuickDraw GX](../../../../REF/refVectors.20.htm) - [Transfer Modes](../../../../REF/refVectors.1d.htm)

## QuickTime Vector Data Streams

[Inside Macintosh: QuickTime Reference](../../../../REF/refVectors.2c.htm) describes QuickTime vector data streams. In QuickTime, paths and their characteristics are represented by a series of atoms in a QT atom container. This ordered series of atoms is called a vector data stream. A vector data stream contains atoms for paths, atoms that specify attributes of paths, and a final atom that marks the end of the data stream. This section gives detailed instructions for creating and manipulating these atoms.

- [Contents of a Vector Data Stream](../../../../REF/refVectors.2d.htm) - [Required Atoms](../../../../REF/refVectors.2e.htm) - [Atoms that Specify Path Attributes](../../../../REF/refVectors.2f.htm)

## QuickTime Vector Features Not Included in QuickDraw GX

[Inside Macintosh: QuickTime Reference](../../../../REF/refVectors.30.htm) describes two features of QuickTime vectors that are not based on QuickDraw GX: gradient fills and minimum bit depth.

- [Gradients for Path Fills](../../../../REF/refVectors.31.htm) - [Specifying the Bit Depth for Paths](../../../../REF/refVectors.32.htm)

## Using QuickTime Vectors

[Inside Macintosh: QuickTime Reference](../../../../REF/refVectors.33.htm) explains how to create and manipulate QuickTime vectors. The examples use utility functions provided by the vector codec, described in "Vector Codec Component Functions", that eliminate the need to work directly with the QuickTime atoms in a vector data stream. If your software edits or parses a great deal of vector data, it may be more efficient to work directly with the atoms. For descriptions of the atoms in a vector data stream, see "Vector QT Atom Container".

- [Opening the Vector Codec Component](../../../../REF/refVectors.34.htm) - [Creating a Vector Data Stream](../../../../REF/refVectors.35.htm) - [Creating a Path Using Only Off-Curve Points](../../../../REF/refVectors.36.htm) - [Creating Paths With Multiple Contours and Fills](../../../../REF/refVectors.37.htm) - [Specifying Joins](../../../../REF/refVectors.38.htm) - [Adding Gradients](../../../../REF/refVectors.39.htm) - [Specifying a Color for a Path](../../../../REF/refVectors.3a.htm) - [Specifying a Transfer Mode](../../../../REF/refVectors.3b.htm) - [Hit-Testing a Path](../../../../REF/refVectors.3c.htm) - [Drawing Vectors](../../../../REF/refVectors.3d.htm)

## Converting QuickDraw GX Data to QuickTime Vectors

[Inside Macintosh: QuickTime Reference](../../../../REF/refVectors.3e.htm) describes how to use the GX-to-vector transcoder included with QuickTime, which lets you convert QuickDraw GX data into equivalent QuickTime vectors. If your application already has QuickDraw GX data, or if you use a drawing program that can create QuickDraw GX data, the transcoder makes it easy to create vector graphics for your application

## Constants

[Inside Macintosh: QuickTime Reference](../../../../REF/refVectors.40.htm) describes the constants that are specific to QuickTime vectors.

- [Vector Atom Types](../../../../REF/refVectors.41.htm) - [Gradient Types](../../../../REF/refVectors.42.htm) - [Fill Types](../../../../REF/refVectors.43.htm) - [Join Constants](../../../../REF/refVectors.44.htm) - [Selectors for Vector Codec Component Functions](../../../../REF/refVectors.45.htm)

## Data Types

[Inside Macintosh: QuickTime Reference](../../../../REF/refVectors.46.htm) defines the data structures used by QuickTime vectors.

- [Vector QT Atom Container](../../../../REF/refVectors.47.htm) - [ARGB Color](../../../../REF/refVectors.48.htm) - [Gradient Color Record](../../../../REF/refVectors.49.htm) - [The Point Structure](../../../../REF/refVectors.4a.htm) - [The Path Structure](../../../../REF/refVectors.4b.htm) - [The Paths Structure](../../../../REF/refVectors.4c.htm) - [Color Structure](../../../../REF/refVectors.4d.htm) - [The Transfer Mode Structure](../../../../REF/refVectors.4e.htm) - [Transfer Component Structure](../../../../REF/refVectors.4f.htm) - [Transfer Component Flag Type](../../../../REF/refVectors.50.htm) - [Transfer Component Mode Type](../../../../REF/refVectors.51.htm) - [Color Value Type](../../../../REF/refVectors.52.htm) - [Transfer Mode Flag Type](../../../../REF/refVectors.53.htm) - [Color Space Type](../../../../REF/refVectors.54.htm) - [Color Space Structures](../../../../REF/refVectors.55.htm)

## Vector Codec Component Functions

[Inside Macintosh: QuickTime Reference](../../../../REF/refVectors.56.htm) defines the functions provided by vector codec components.

- `CurveAddAtomToVectorStream` - `CurveAddPathAtomToVectorStream` - `CurveAddZeroAtomToVectorStream` - `CurveCountPointsInPath` - `CurveCreateVectorStream` - `CurveGetAtomDataFromVectorStream` - `CurveGetLength` - `CurveGetNearestPathPoint` - `CurveGetPathPoint` - `CurveInsertPointIntoPath` - `CurveLengthToPoint` - `CurveNewPath` - `CurvePathPointToLength` - `CurveSetPathPoint`

## Vector Codec Macros

[Inside Macintosh: QuickTime Reference](../../../../REF/refVectors.57.htm) describes a macro provided by vector components, which you can use to convert an integer to a Fixed value.

- [ff](../../../../REF/refVectors.57.htm)

Copyright © 2000 Apple Computer, Inc. All Rights Reserved. [Terms of Use](http://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](http://www.apple.com/privacy/) | Updated: 2000-11-04
