Managing Graphics Contexts
Saving and Restoring the Current Graphics State
Getting and Setting Graphics State Parameters
CGContextGetInterpolationQuality
CGContextSetFlatness
CGContextSetInterpolationQuality
CGContextSetLineCap
CGContextSetLineDash
CGContextSetLineJoin
CGContextSetLineWidth
CGContextSetMiterLimit
CGContextSetPatternPhase
CGContextSetFillPattern
CGContextSetRenderingIntent
CGContextSetShouldAntialias
CGContextSetStrokePattern
CGContextSetBlendMode
CGContextSetAllowsAntialiasing
CGContextSetAllowsFontSmoothing
CGContextSetShouldSmoothFonts
CGContextSetAllowsFontSubpixelPositioning
CGContextSetShouldSubpixelPositionFonts
CGContextSetAllowsFontSubpixelQuantization
CGContextSetShouldSubpixelQuantizeFonts
Constructing Paths
These functions are used to define the geometry of the current path. For more information on how paths are defined, see CGPath Reference.
CGContextAddArc
CGContextAddArcToPoint
CGContextAddCurveToPoint
CGContextAddLines
CGContextAddLineToPoint
CGContextAddPath
CGContextCopyPath
CGContextAddQuadCurveToPoint
CGContextAddRect
CGContextAddRects
CGContextBeginPath
CGContextClosePath
CGContextMoveToPoint
CGContextAddEllipseInRect
Painting Paths
These functions are used to stroke along or fill in the current path.
CGContextClearRect
CGContextDrawPath
CGContextEOFillPath
CGContextFillPath
CGContextFillRect
CGContextFillRects
CGContextFillEllipseInRect
CGContextStrokePath
CGContextStrokeRect
CGContextStrokeRectWithWidth
CGContextReplacePathWithStrokedPath
CGContextStrokeEllipseInRect
CGContextStrokeLineSegments
Getting Information About Paths
CGContextIsPathEmpty
CGContextGetPathCurrentPoint
CGContextGetPathBoundingBox
CGContextPathContainsPoint
Modifying Clipping Paths
CGContextClip
CGContextEOClip
CGContextClipToRect
CGContextClipToRects
CGContextGetClipBoundingBox
CGContextClipToMask
Setting Color, Color Space, and Shadow Values
CGContextSetAlpha
CGContextSetCMYKFillColor
CGContextSetFillColor
CGContextSetCMYKStrokeColor
CGContextSetFillColorSpace
CGContextSetFillColorWithColor
CGContextSetGrayFillColor
CGContextSetGrayStrokeColor
CGContextSetRGBFillColor
CGContextSetRGBStrokeColor
CGContextSetShadow
CGContextSetShadowWithColor
CGContextSetStrokeColor
CGContextSetStrokeColorSpace
CGContextSetStrokeColorWithColor
Transforming User Space
These functions allow you to examine and change the current transformation matrix (CTM) in a graphics context.
Using Transparency Layers
Drawing an Image to a Graphics Context
Drawing PDF Content to a Graphics Context
Drawing With a Gradient
Drawing With a Shading
Setting Up a Page-Based Graphics Context
Drawing Glyphs
CGContextShowGlyphsAtPositions
CGContextShowGlyphs
Deprecated in iOS 7.0CGContextShowGlyphsAtPoint
Deprecated in iOS 7.0CGContextShowGlyphsWithAdvances
Deprecated in iOS 7.0
Drawing Text
CGContextGetTextMatrix
CGContextGetTextPosition
CGContextSetCharacterSpacing
CGContextSetFont
CGContextSetFontSize
CGContextSetTextDrawingMode
CGContextSetTextMatrix
CGContextSetTextPosition
CGContextSelectFont
Deprecated in iOS 7.0CGContextShowText
Deprecated in iOS 7.0CGContextShowTextAtPoint
Deprecated in iOS 7.0
Converting Between Device Space and User Space
CGContextGetUserSpaceToDeviceSpaceTransform
CGContextConvertPointToDeviceSpace
CGContextConvertPointToUserSpace
CGContextConvertSizeToDeviceSpace
CGContextConvertSizeToUserSpace
CGContextConvertRectToDeviceSpace
CGContextConvertRectToUserSpace