QuickDraw - Higher Level Operations

Higher Level Operations

Any series of graphics calls to QuickDraw can be recorded in a structure called a Picture. This can then be saved in memory and "played back" at any time, reproducing the graphics sequence. At playback time the picture may be placed at new coordinates or scaled. A picture can be saved to disk in which form it defines the Apple PICT format.

An entire BitMap (or PixMap, when referring to color images) may be copied from one GrafPort to another, with scaling and clipping. Known as blitting, or CopyBits, after the name of the function, this operation is the basis for most animation and sprite-like effects on the Mac.

QuickDraw provides a similar blitting function which is designed to implement scrolling within a GrafPort - the image in the port can be shifted to a new location without scaling (but with clipping if desired).

Each graphics primitive operation is vectored through the StdProcs, a series of function pointers stored in the GrafPort. This limited polymorphism permits individual operations to be overridden or replaced by custom functions, allowing printer drivers to intercept graphics commands and translate them to suitable printer operations. In this way, QuickDraw can be rendered using PostScript, a fact that enabled the Macintosh to practically invent desktop publishing.

Similar to a subclass, the Window data structure began with the associated GrafPort, thus basically making windows exchangeable with any GrafPort. While convenient, this could be a source of programming errors.

Read more about this topic:  QuickDraw

Famous quotes containing the words higher level, higher, level and/or operations:

    Nature uses human imagination to lift her work of creation to even higher levels.
    Luigi Pirandello (1867–1936)

    The true thrift is always to spend on the higher plane; to invest and invest, with keener avarice, that he may spend in spiritual creation, and not in augmenting animal existence. Nor is the man enriched, in repeating the old experiments of animal sensation; nor unless through new powers and ascending pleasures he knows himself by the actual experience of higher good to be already on the way to the highest.
    Ralph Waldo Emerson (1803–1882)

    We never exchange more than three words with a Friend in our lives on that level to which our thoughts and feelings almost habitually rise.
    Henry David Thoreau (1817–1862)

    There is a patent office at the seat of government of the universe, whose managers are as much interested in the dispersion of seeds as anybody at Washington can be, and their operations are infinitely more extensive and regular.
    Henry David Thoreau (1817–1862)