词条 | Quartz 2D |
释义 |
|logo= }} Quartz 2D is the native two-dimensional graphics rendering API for macOS and iOS platforms, part of the Core Graphics framework. OverviewQuartz 2D is available to all macOS and iOS 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:[1]
Because Quartz 2D is one of several Quartz Technologies, the term "Quartz" by itself must be taken in context. Drawing in Quartz 2DQuartz 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.[2] Drawing takes place using a Cartesian coordinate system, where text, vectors, or bitmap images are placed on a grid.[3] 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.[4] HistoryQuartz 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.[5] Quartz (and its renderer) were first demonstrated at WWDC in May 1999.[6] 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 macOS (including Core Image for example). Prior to Mac OS X Tiger, QuickDraw rendering outperformed that of Quartz 2D. Mac OS X 10.4 rectified this, substantially increasing the standard rendering performance of Quartz 2D.[7] Tiger also introduced Quartz 2D Extreme: optional graphics processor (GPU) acceleration for Quartz 2D, although it is not an officially supported feature.[7] Quartz 2D Extreme is disabled by default in Mac OS X 10.4 because it may lead to video redraw issues or kernel panics.[8] In Mac OS X Leopard, Quartz 2D Extreme was renamed QuartzGL. See also
References1. ^{{cite web | title=Apple - Developer - Quartz 2D Programming Guide | url=https://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007533-SW1 | accessdate=2012-03-28}} 2. ^{{cite web | title=Apple - Developer - Graphics & Imaging Overview | url=https://developer.apple.com/graphicsimaging/overview.html | accessdate=2007-01-25}} 3. ^{{cite web|title=Apple - Developer - Quartz Programming Guide for QuickDraw Developers: Coordinate Space |url=https://developer.apple.com/documentation/Carbon/Conceptual/QuickDrawToQuartz2D/tq_other/chapter_3_section_2.html |accessdate=2007-01-25 |deadurl=yes |archiveurl=https://web.archive.org/web/20081011215343/http://developer.apple.com/documentation/Carbon/Conceptual/QuickDrawToQuartz2D/tq_other/chapter_3_section_2.html |archivedate=October 11, 2008 }} 4. ^{{cite web|title=Apple - Developer - Quartz Programming Guide for QuickDraw Developers: Drawing Destinations |url=https://developer.apple.com/documentation/Carbon/Conceptual/QuickDrawToQuartz2D/tq_other/chapter_3_section_3.html |accessdate=2007-01-25 |deadurl=yes |archiveurl=https://web.archive.org/web/20080905214109/http://developer.apple.com/documentation/Carbon/Conceptual/QuickDrawToQuartz2D/tq_other/chapter_3_section_3.html |archivedate=September 5, 2008 }} 5. ^{{cite web | title=Ars Technica - Mac OS X DP4 | url=https://arstechnica.com/reviews/2q00/macos-x-dp4/macos-x-dp4-4.html | accessdate=2007-01-25}} 6. ^{{cite web | title=Ars Technica - Mac OS X Update: Quartz & Aqua | url=https://arstechnica.com/reviews/1q00/macos-x-gui/macos-x-gui-2.html | accessdate=2007-01-25}} 7. ^1 [https://arstechnica.com/apple/2005/04/macosx-10-4/14/ Mac OS X 10.4 Tiger | Ars Technica] 8. ^{{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}} External links
2 : Graphics libraries|macOS APIs |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。