Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Quartz 2D
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==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.<ref>{{cite web | title=Apple - Developer - Graphics & Imaging Overview | url=https://developer.apple.com/graphicsimaging/overview.html | access-date=2007-01-25}}</ref> Drawing takes place using a [[Cartesian coordinate system]], where text, vectors, or bitmap images are placed on a grid.<ref>{{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 |access-date=2007-01-25 |url-status=dead |archive-url=https://web.archive.org/web/20081011215343/http://developer.apple.com/documentation/Carbon/Conceptual/QuickDrawToQuartz2D/tq_other/chapter_3_section_2.html |archive-date=October 11, 2008 }}</ref> 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.<ref>{{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 |access-date=2007-01-25 |url-status=dead |archive-url=https://web.archive.org/web/20080905214109/http://developer.apple.com/documentation/Carbon/Conceptual/QuickDrawToQuartz2D/tq_other/chapter_3_section_3.html |archive-date=September 5, 2008 }}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)