Quartz 2D

Quartz 2D

Mac OS X Graphics Model

Quartz 2D is the primary two-dimensional graphics rendering API for Mac OS X, part of the Core Graphics framework.

Overview

Quartz 2D is available to all Mac OS X application environments, and provides resolution-independent and device-independent rendering of bitmap graphics, text, and vectors both on-screen and in preparation for printing. Its responsibilities within the graphics layer include: [cite web | title=Apple - Developer - Quartz 2D Programming Guide | url=http://developer.apple.com/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_intro/chapter_1_section_1.html | accessdate=2007-01-24]

* Rendering text using Apple Type Services (ATS)
* Displaying, manipulating, and rendering PDF documents
* Converting PostScript data to PDF data, and vice-versa
* Displaying, manipulating, and rendering bitmap images via ImageIO
* Providing color management via ColorSync
* Displaying the elements of the Aqua user interface

Drawing in Quartz 2D

Quartz 2D expands the drawing functions associated with QuickDraw. The most notable difference is that Quartz 2D eliminates output device and resolution specificity.

The drawing model utilized by Quartz 2D is based on PDF specification 1.4. [cite web | title=Apple - Developer - Graphics & Imaging Overview | url=http://developer.apple.com/graphicsimaging/overview.html | accessdate=2007-01-25] Drawing takes place using a Cartesian coordinate system, where text, vectors, or bitmap images are placed on a grid. [cite web | title=Apple - Developer - Quartz Programming Guide for QuickDraw Developers: Coordinate Space | url=http://developer.apple.com/documentation/Carbon/Conceptual/QuickDrawToQuartz2D/tq_other/chapter_3_section_2.html | accessdate=2007-01-25] However, drawing output is not sent directly to the output device. Quartz 2D uses graphics contexts, environments in which drawing takes place. Each graphics context defines how the drawing should be presented: in a window, sent to a printer, an OpenGL layer, or off-screen. Each context rasterizes the drawing at the desired resolution without altering the data that defines the drawing. Thus, contexts are the mechanism by which Quartz 2D employs resolution- and device-independence. For example, a window context may rasterize an object to the appropriate screen resolution to create actual graphics on the display. The same object can be sent to a printing context at a much higher resolution. This permits the same graphics commands to yield output on any device using the most appropriate resolution. [cite web | title=Apple - Developer - Quartz Programming Guide for QuickDraw Developers: Drawing Destinations | url=http://developer.apple.com/documentation/Carbon/Conceptual/QuickDrawToQuartz2D/tq_other/chapter_3_section_3.html | accessdate=2007-01-25]

History

Quartz 2D is similar to NeXT's Display PostScript in its use of contexts. It first appeared as the 2D graphics rendering library called Core Graphics Rendering; along with Core Graphics Services (Compositing), it was wrapped into the initial incarnation of Quartz. [cite web | title=Ars Technica - Mac OS X DP4 | url=http://arstechnica.com/reviews/2q00/macos-x-dp4/macos-x-dp4-4.html | accessdate=2007-01-25] Quartz (and its renderer) were first demonstrated at WWDC in May 1999. [cite web | title=Ars Technica - Mac OS X Update: Quartz & Aqua | url=http://arstechnica.com/reviews/1q00/macos-x-gui/macos-x-gui-2.html | accessdate=2007-01-25]

Presently, the name "Quartz 2D" more precisely defines the 2D rendering capabilities of Core Graphics (Quartz). With the release of Mac OS X 10.2, marketing attention focused on Quartz Extreme, the composition layer, leaving the term "Quartz" to refer to the Core Graphics framework or just its 2D renderer. Presently, "Quartz" technologies can describe all of the rendering and compositing technologies introduced by Mac OS X (including Core Image for example).

Prior to Mac OS X 10.4, QuickDraw rendering outperformed that of Quartz 2D. Mac OS X 10.4 rectified this, substantially increasing the standard rendering performance of Quartz 2D. Mac OS X 10.4 also introduced Quartz 2D Extreme: optional graphics processor (GPU) acceleration for Quartz 2D, although it is not an officially supported feature. Quartz 2D Extreme is disabled by default in Mac OS X 10.4 because it may lead to video redraw issues or kernel panics. [cite web | title=Apple - Info - Docs - About the Mac OS X 10.4.3 Update (Delta) | url=http://docs.info.apple.com/article.html?artnum=301984 | accessdate=2007-08-19] In Mac OS X 10.5, Quartz 2D Extreme was renamed QuartzGL.

References

See also

* Quartz (graphics layer)
* Quartz Compositor
* QuickDraw
* Display PostScript
* Core Image

Competitors

* Cairo
* GDI and WPF on Windows Vista

External links

* [http://www.apple.com/macosx/features/quartz/ Mac OS X – Features – Quartz Extreme] – from Apple
* [http://developer.apple.com/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/ Introduction to Quartz 2D Programming Guide] – developer documentation from Apple
* [http://www.macdevcenter.com/pub/a/mac/2004/09/28/quartz.html Introduction to Quartz 2D for QuickDraw Programmers] – developer documentation from O'Reilly's MacDevCenter


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • quartz — [ kwarts ] n. m. • 1749; all. Quarz ♦ Forme cristalline commune de la silice (SiO2), appelée à l état pur cristal de roche; élément constitutif fréquent des roches cristallines (granites, rhyolithes, etc.), de certaines roches sédimentaires… …   Encyclopédie Universelle

  • Quartz 2D — est l interface de programmation principale pour le rendu bi dimensionnel de Mac OS X faisant partie du paquet Core Graphics. Sommaire 1 Détails 2 L affichage dans Quartz 2D 3 Histoire 4 …   Wikipédia en Français

  • Quartz — ist die Grafikschicht des Apple Betriebssystems Mac OS X. Bei Quartz handelt es sich um eine Bibliothek für 2D und 3D Grafiken, die das grundlegende Darstellungsmodell für Mac OS X bildet. Aufbauend auf dem plattformübergreifenden PDF Standard… …   Deutsch Wikipedia

  • Quartz — Quartz, n. [G. quarz.] (Min.) A form of silica, or silicon dioxide ({SiO2}), occurring in hexagonal crystals, which are commonly colorless and transparent, but sometimes also yellow, brown, purple, green, and of other colors; also in… …   The Collaborative International Dictionary of English

  • quartz — [kwo:ts US kwo:rts] n [U] [Date: 1700 1800; : German; Origin: quarz] a hard mineral substance that is used in making electronic watches and clocks ▪ quartz crystals ▪ a quartz watch …   Dictionary of contemporary English

  • Quartz — der; es, e <aus engl. quartz> engl. Schreibung von dt. Quarz (z. B. zur Kennzeichnung von quarzgesteuerten Uhren) …   Das große Fremdwörterbuch

  • quartz — (n.) 1756, from Ger. Quarz rock crystal, from M.H.G. twarc, probably from a W.Slavic source (Cf. Czech tvrdy, Polish twardy quartz ), from O.C.S. tvrudu hard …   Etymology dictionary

  • quartz — [kwôrts] n. [Ger quarz < ?] any of various crystallized forms of silica that are transparent, translucent, or colored, used in many ways, esp. as a gem or in making glass, lenses, or quartz crystals: see MOHS SCALE quartzose [kwôrts′ōs΄] adj …   English World dictionary

  • quartz — [ kwɔrts ] noun uncount a hard shiny stone often used inside electronic equipment and watches …   Usage of the words and phrases in modern English

  • quartz — ► NOUN ▪ a hard mineral consisting of silica, typically occurring as colourless or white hexagonal prisms. ORIGIN German Quarz, from Polish dialect kwardy, corresponding to Czech tvrdý hard …   English terms dictionary

  • quartz|it|ic — «kwawrt SIHT ihk», adjective. of the nature of or consisting of quartzite …   Useful english dictionary

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”