Changes

Jump to: navigation, search

Drawing iOS 4 iPad 2D Graphics with Quartz (Xcode 4)

28 bytes added, 19:58, 27 October 2016
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<googlehtmlet>BUY_IPADios9_upgrade</googlehtmlet>
== Points, Coordinates and Pixels ==
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
The Quartz 2D API functions work on the basis of points. These are essentially the x and y coordinates of a two dimensional coordinate system on the device screen with 0, 0 representing the top left hand corner of the display. These coordinates are stored in the form of CGFloat variables.
CGFloat components[] = {0.0, 0.0, 1.0, 0.5};
</pre>
<googlehtmlet>BUY_IPAD_BOTTOMios9_upgrade</googlehtmlet>
With both the colorspace and the components defined, the CGColorRef structure can be created:
<googlehtmlet>BUY_IPAD_BOTTOMios9_upgrade</googlehtmlet>
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">

Navigation menu