Quartz2DProgrammingGuideContentsIntroduction14WhoShouldReadThisDocument?14OrganizationofThisDocument14SeeAlso15OverviewofQuartz2D17ThePage17DrawingDestinations:TheGraphicsContext18Quartz2DOpaqueDataTypes20GraphicsStates22Quartz2DCoordinateSystems23MemoryManagement:ObjectOwnership26GraphicsContexts27DrawingtoaViewGraphicsContextiniOS27CreatingaWindowGraphicsContextinMacOSX28CreatingaPDFGraphicsContext30CreatingaBitmapGraphicsContext35SupportedPixelFormats39Anti-Aliasing40ObtainingaGraphicsContextforPrinting41Paths42PathCreationandPathPainting42TheBuildingBlocks44Points44Lines44Arcs45Curves46ClosingaSubpath48Ellipses49Rectangles49CreatingaPath50PaintingaPath512014-09-17|Copyright©2001,2014AppleInc.AllRightsReserved.2ParametersThatAffectStroking52FunctionsforStrokingaPath54FillingaPath55SettingBlendModes56ClippingtoaPath66ColorandColorSpaces68AboutColorandColorSpaces68TheAlphaValue69CreatingColorSpaces71CreatingDevice-IndependentColorSpaces71CreatingGenericColorSpaces72CreatingDeviceColorSpaces72CreatingIndexedandPatternColorSpaces73SettingandCreatingColors73SettingRenderingIntent75Transforms76AboutQuartzTransformationFunctions77ModifyingtheCurrentTransformationMatrix77CreatingAffineTransforms83EvaluatingAffineTransforms85GettingtheUsertoDeviceSpaceTransform85TheMathBehindtheMatrices85Patterns89TheAnatomyofaPattern89ColoredPatternsandStencil(Uncolored)Patterns93Tiling94HowPatternsWork94PaintingColoredPatterns95WriteaCallbackFunctionThatDrawsaColoredPatternCell95SetUptheColoredPatternColorSpace97SetUptheAnatomyoftheColoredPattern97SpecifytheColoredPatternasaFillorStrokePattern99DrawWiththeColoredPattern99ACompleteColoredPatternPaintingFunction99PaintingStencilPatterns101WriteaCallbackFunctionThatDrawsaStencilPatternCell102SetUptheStencilPatternColorSpace1032014-09-17|Copyright©2001,2014AppleInc.AllRightsReserved.3ContentsSetUptheAnatomyoftheStencilPattern104SpecifytheStencilPatternasaFillorStrokePattern104DrawingwiththeStencilPattern104ACompleteStencilPatternPainti...