|
Mac OS 9
|
CoreGraphics context. More...
#include <CGBase.h>#include <CGAffineTransform.h>#include <CGColorSpace.h>#include <CGFont.h>#include <CGImage.h>#include <CGPDFDocument.h>Go to the source code of this file.
Functions | |
| void | CGContextSaveGState (CGContextRef ctx) |
| void | CGContextRestoreGState (CGContextRef ctx) |
| void | CGContextScaleCTM (CGContextRef ctx, float sx, float sy) |
| void | CGContextTranslateCTM (CGContextRef ctx, float tx, float ty) |
| void | CGContextRotateCTM (CGContextRef ctx, float angle) |
| void | CGContextConcatCTM (CGContextRef ctx, CGAffineTransform transform) |
| CGAffineTransform | CGContextGetCTM (CGContextRef ctx) |
| void | CGContextSetLineWidth (CGContextRef ctx, float width) |
| void | CGContextSetLineCap (CGContextRef ctx, CGLineCap cap) |
| void | CGContextSetLineJoin (CGContextRef ctx, CGLineJoin join) |
| void | CGContextSetMiterLimit (CGContextRef ctx, float limit) |
| void | CGContextSetLineDash (CGContextRef ctx, float phase, const float lengths[], size_t count) |
| void | CGContextSetFlatness (CGContextRef ctx, float flatness) |
| void | CGContextSetAlpha (CGContextRef ctx, float alpha) |
| void | CGContextBeginPath (CGContextRef ctx) |
| void | CGContextMoveToPoint (CGContextRef ctx, float x, float y) |
| void | CGContextAddLineToPoint (CGContextRef ctx, float x, float y) |
| void | CGContextAddCurveToPoint (CGContextRef ctx, float cp1x, float cp1y, float cp2x, float cp2y, float x, float y) |
| void | CGContextAddQuadCurveToPoint (CGContextRef ctx, float cpx, float cpy, float x, float y) |
| void | CGContextClosePath (CGContextRef ctx) |
| void | CGContextAddRect (CGContextRef ctx, CGRect rect) |
| void | CGContextAddRects (CGContextRef ctx, const CGRect rects[], size_t count) |
| void | CGContextAddLines (CGContextRef ctx, const CGPoint points[], size_t count) |
| void | CGContextAddArc (CGContextRef ctx, float x, float y, float radius, float startAngle, float endAngle, int clockwise) |
| void | CGContextAddArcToPoint (CGContextRef ctx, float x1, float y1, float x2, float y2, float radius) |
| int | CGContextIsPathEmpty (CGContextRef ctx) |
| CGPoint | CGContextGetPathCurrentPoint (CGContextRef ctx) |
| CGRect | CGContextGetPathBoundingBox (CGContextRef ctx) |
| void | CGContextDrawPath (CGContextRef ctx, CGPathDrawingMode mode) |
| void | CGContextFillPath (CGContextRef ctx) |
| void | CGContextEOFillPath (CGContextRef ctx) |
| void | CGContextStrokePath (CGContextRef ctx) |
| void | CGContextFillRect (CGContextRef ctx, CGRect rect) |
| void | CGContextFillRects (CGContextRef ctx, const CGRect rects[], size_t count) |
| void | CGContextStrokeRect (CGContextRef ctx, CGRect rect) |
| void | CGContextStrokeRectWithWidth (CGContextRef ctx, CGRect rect, float width) |
| void | CGContextClearRect (CGContextRef c, CGRect rect) |
| void | CGContextClip (CGContextRef ctx) |
| void | CGContextEOClip (CGContextRef ctx) |
| void | CGContextClipToRect (CGContextRef ctx, CGRect rect) |
| void | CGContextClipToRects (CGContextRef ctx, const CGRect rects[], size_t count) |
| void | CGContextSetFillColorSpace (CGContextRef ctx, CGColorSpaceRef colorspace) |
| void | CGContextSetStrokeColorSpace (CGContextRef ctx, CGColorSpaceRef colorspace) |
| void | CGContextSetFillColor (CGContextRef c, const float components[]) |
| void | CGContextSetStrokeColor (CGContextRef c, const float components[]) |
| void | CGContextSetFillPattern (CGContextRef c, CGPatternRef pattern, const float components[]) |
| void | CGContextSetStrokePattern (CGContextRef c, CGPatternRef pattern, const float components[]) |
| void | CGContextSetGrayFillColor (CGContextRef ctx, float gray, float alpha) |
| void | CGContextSetGrayStrokeColor (CGContextRef ctx, float gray, float alpha) |
| void | CGContextSetRGBFillColor (CGContextRef ctx, float red, float green, float blue, float alpha) |
| void | CGContextSetRGBStrokeColor (CGContextRef ctx, float red, float green, float blue, float alpha) |
| void | CGContextSetCMYKFillColor (CGContextRef ctx, float cyan, float magenta, float yellow, float black, float alpha) |
| void | CGContextSetCMYKStrokeColor (CGContextRef ctx, float cyan, float magenta, float yellow, float black, float alpha) |
| void | CGContextSetRenderingIntent (CGContextRef c, CGColorRenderingIntent intent) |
| void | CGContextDrawImage (CGContextRef ctx, CGRect rect, CGImageRef image) |
| CGInterpolationQuality | CGContextGetInterpolationQuality (CGContextRef c) |
| void | CGContextSetInterpolationQuality (CGContextRef c, CGInterpolationQuality quality) |
| void | CGContextSetCharacterSpacing (CGContextRef ctx, float spacing) |
| void | CGContextSetTextPosition (CGContextRef ctx, float x, float y) |
| CGPoint | CGContextGetTextPosition (CGContextRef ctx) |
| void | CGContextSetTextMatrix (CGContextRef ctx, CGAffineTransform transform) |
| CGAffineTransform | CGContextGetTextMatrix (CGContextRef ctx) |
| void | CGContextSetTextDrawingMode (CGContextRef ctx, CGTextDrawingMode mode) |
| void | CGContextSetFont (CGContextRef ctx, CGFontRef font) |
| void | CGContextSetFontSize (CGContextRef ctx, float size) |
| void | CGContextSelectFont (CGContextRef ctx, const char *name, float size, CGTextEncoding textEncoding) |
| void | CGContextShowText (CGContextRef ctx, const char *cstring, size_t length) |
| void | CGContextShowGlyphs (CGContextRef ctx, const CGGlyph g[], size_t count) |
| void | CGContextShowTextAtPoint (CGContextRef ctx, float x, float y, const char *cstring, size_t length) |
| void | CGContextShowGlyphsAtPoint (CGContextRef ctx, float x, float y, const CGGlyph g[], size_t count) |
| void | CGContextDrawPDFDocument (CGContextRef ctx, CGRect rect, CGPDFDocumentRef document, int page) |
| void | CGContextBeginPage (CGContextRef ctx, const CGRect *mediaBox) |
| void | CGContextEndPage (CGContextRef ctx) |
| CGContextRef | CGContextRetain (CGContextRef ctx) |
| void | CGContextRelease (CGContextRef ctx) |
| void | CGContextFlush (CGContextRef ctx) |
| void | CGContextSynchronize (CGContextRef ctx) |
| void | CGContextSetShouldAntialias (CGContextRef ctx, int shouldAntialias) |
CoreGraphics context.
For bug reports, consult the following page on the World Wide Web:
http://developer.apple.com/bugreporter/
| void CGContextAddArc | ( | CGContextRef | ctx, |
| float | x, | ||
| float | y, | ||
| float | radius, | ||
| float | startAngle, | ||
| float | endAngle, | ||
| int | clockwise | ||
| ) |
| void CGContextAddArcToPoint | ( | CGContextRef | ctx, |
| float | x1, | ||
| float | y1, | ||
| float | x2, | ||
| float | y2, | ||
| float | radius | ||
| ) |
| void CGContextAddCurveToPoint | ( | CGContextRef | ctx, |
| float | cp1x, | ||
| float | cp1y, | ||
| float | cp2x, | ||
| float | cp2y, | ||
| float | x, | ||
| float | y | ||
| ) |
| void CGContextAddLines | ( | CGContextRef | ctx, |
| const CGPoint | points[], | ||
| size_t | count | ||
| ) |
| void CGContextAddLineToPoint | ( | CGContextRef | ctx, |
| float | x, | ||
| float | y | ||
| ) |
| void CGContextAddQuadCurveToPoint | ( | CGContextRef | ctx, |
| float | cpx, | ||
| float | cpy, | ||
| float | x, | ||
| float | y | ||
| ) |
CGContextAddQuadCurveToPoint()
| void CGContextAddRect | ( | CGContextRef | ctx, |
| CGRect | rect | ||
| ) |
Path construction convenience functions. CGContextAddRect()
| void CGContextAddRects | ( | CGContextRef | ctx, |
| const CGRect | rects[], | ||
| size_t | count | ||
| ) |
| void CGContextBeginPage | ( | CGContextRef | ctx, |
| const CGRect * | mediaBox | ||
| ) |
Page functions. CGContextBeginPage()
| void CGContextBeginPath | ( | CGContextRef | ctx | ) |
Path construction functions. CGContextBeginPath()
| void CGContextClearRect | ( | CGContextRef | c, |
| CGRect | rect | ||
| ) |
| void CGContextClip | ( | CGContextRef | ctx | ) |
Clipping functions. CGContextClip()
| void CGContextClipToRect | ( | CGContextRef | ctx, |
| CGRect | rect | ||
| ) |
Clipping convenience functions. CGContextClipToRect()
| void CGContextClipToRects | ( | CGContextRef | ctx, |
| const CGRect | rects[], | ||
| size_t | count | ||
| ) |
| void CGContextClosePath | ( | CGContextRef | ctx | ) |
| void CGContextConcatCTM | ( | CGContextRef | ctx, |
| CGAffineTransform | transform | ||
| ) |
| void CGContextDrawImage | ( | CGContextRef | ctx, |
| CGRect | rect, | ||
| CGImageRef | image | ||
| ) |
Image functions. CGContextDrawImage()
| void CGContextDrawPath | ( | CGContextRef | ctx, |
| CGPathDrawingMode | mode | ||
| ) |
Path drawing functions. CGContextDrawPath()
| void CGContextDrawPDFDocument | ( | CGContextRef | ctx, |
| CGRect | rect, | ||
| CGPDFDocumentRef | document, | ||
| int | page | ||
| ) |
PDF document functions. CGContextDrawPDFDocument()
| void CGContextEndPage | ( | CGContextRef | ctx | ) |
| void CGContextEOClip | ( | CGContextRef | ctx | ) |
| void CGContextEOFillPath | ( | CGContextRef | ctx | ) |
| void CGContextFillPath | ( | CGContextRef | ctx | ) |
Path drawing convenience functions. CGContextFillPath()
| void CGContextFillRect | ( | CGContextRef | ctx, |
| CGRect | rect | ||
| ) |
| void CGContextFillRects | ( | CGContextRef | ctx, |
| const CGRect | rects[], | ||
| size_t | count | ||
| ) |
| void CGContextFlush | ( | CGContextRef | ctx | ) |
| CGAffineTransform CGContextGetCTM | ( | CGContextRef | ctx | ) |
| CGInterpolationQuality CGContextGetInterpolationQuality | ( | CGContextRef | c | ) |
CGContextGetInterpolationQuality()
| CGRect CGContextGetPathBoundingBox | ( | CGContextRef | ctx | ) |
| CGPoint CGContextGetPathCurrentPoint | ( | CGContextRef | ctx | ) |
CGContextGetPathCurrentPoint()
| CGAffineTransform CGContextGetTextMatrix | ( | CGContextRef | ctx | ) |
| CGPoint CGContextGetTextPosition | ( | CGContextRef | ctx | ) |
| int CGContextIsPathEmpty | ( | CGContextRef | ctx | ) |
Path information functions. CGContextIsPathEmpty()
| void CGContextMoveToPoint | ( | CGContextRef | ctx, |
| float | x, | ||
| float | y | ||
| ) |
| void CGContextRelease | ( | CGContextRef | ctx | ) |
| void CGContextRestoreGState | ( | CGContextRef | ctx | ) |
| CGContextRef CGContextRetain | ( | CGContextRef | ctx | ) |
Context functions. CGContextRetain()
| void CGContextRotateCTM | ( | CGContextRef | ctx, |
| float | angle | ||
| ) |
| void CGContextSaveGState | ( | CGContextRef | ctx | ) |
Graphics state functions. CGContextSaveGState()
| void CGContextScaleCTM | ( | CGContextRef | ctx, |
| float | sx, | ||
| float | sy | ||
| ) |
Coordinate space transformations. CGContextScaleCTM()
| void CGContextSelectFont | ( | CGContextRef | ctx, |
| const char * | name, | ||
| float | size, | ||
| CGTextEncoding | textEncoding | ||
| ) |
| void CGContextSetAlpha | ( | CGContextRef | ctx, |
| float | alpha | ||
| ) |
| void CGContextSetCharacterSpacing | ( | CGContextRef | ctx, |
| float | spacing | ||
| ) |
Text functions. CGContextSetCharacterSpacing()
| void CGContextSetCMYKFillColor | ( | CGContextRef | ctx, |
| float | cyan, | ||
| float | magenta, | ||
| float | yellow, | ||
| float | black, | ||
| float | alpha | ||
| ) |
| void CGContextSetCMYKStrokeColor | ( | CGContextRef | ctx, |
| float | cyan, | ||
| float | magenta, | ||
| float | yellow, | ||
| float | black, | ||
| float | alpha | ||
| ) |
| void CGContextSetFillColor | ( | CGContextRef | c, |
| const float | components[] | ||
| ) |
Color functions. CGContextSetFillColor()
| void CGContextSetFillColorSpace | ( | CGContextRef | ctx, |
| CGColorSpaceRef | colorspace | ||
| ) |
Colorspace functions. CGContextSetFillColorSpace()
| void CGContextSetFillPattern | ( | CGContextRef | c, |
| CGPatternRef | pattern, | ||
| const float | components[] | ||
| ) |
Pattern functions. CGContextSetFillPattern()
| void CGContextSetFlatness | ( | CGContextRef | ctx, |
| float | flatness | ||
| ) |
| void CGContextSetFont | ( | CGContextRef | ctx, |
| CGFontRef | font | ||
| ) |
| void CGContextSetFontSize | ( | CGContextRef | ctx, |
| float | size | ||
| ) |
| void CGContextSetGrayFillColor | ( | CGContextRef | ctx, |
| float | gray, | ||
| float | alpha | ||
| ) |
Color convenience functions. CGContextSetGrayFillColor()
| void CGContextSetGrayStrokeColor | ( | CGContextRef | ctx, |
| float | gray, | ||
| float | alpha | ||
| ) |
| void CGContextSetInterpolationQuality | ( | CGContextRef | c, |
| CGInterpolationQuality | quality | ||
| ) |
CGContextSetInterpolationQuality()
| void CGContextSetLineCap | ( | CGContextRef | ctx, |
| CGLineCap | cap | ||
| ) |
| void CGContextSetLineDash | ( | CGContextRef | ctx, |
| float | phase, | ||
| const float | lengths[], | ||
| size_t | count | ||
| ) |
| void CGContextSetLineJoin | ( | CGContextRef | ctx, |
| CGLineJoin | join | ||
| ) |
| void CGContextSetLineWidth | ( | CGContextRef | ctx, |
| float | width | ||
| ) |
Drawing attribute functions. CGContextSetLineWidth()
| void CGContextSetMiterLimit | ( | CGContextRef | ctx, |
| float | limit | ||
| ) |
| void CGContextSetRenderingIntent | ( | CGContextRef | c, |
| CGColorRenderingIntent | intent | ||
| ) |
Rendering intent. CGContextSetRenderingIntent()
| void CGContextSetRGBFillColor | ( | CGContextRef | ctx, |
| float | red, | ||
| float | green, | ||
| float | blue, | ||
| float | alpha | ||
| ) |
| void CGContextSetRGBStrokeColor | ( | CGContextRef | ctx, |
| float | red, | ||
| float | green, | ||
| float | blue, | ||
| float | alpha | ||
| ) |
| void CGContextSetShouldAntialias | ( | CGContextRef | ctx, |
| int | shouldAntialias | ||
| ) |
Antialiasing functions. CGContextSetShouldAntialias()
| void CGContextSetStrokeColor | ( | CGContextRef | c, |
| const float | components[] | ||
| ) |
| void CGContextSetStrokeColorSpace | ( | CGContextRef | ctx, |
| CGColorSpaceRef | colorspace | ||
| ) |
CGContextSetStrokeColorSpace()
| void CGContextSetStrokePattern | ( | CGContextRef | c, |
| CGPatternRef | pattern, | ||
| const float | components[] | ||
| ) |
| void CGContextSetTextDrawingMode | ( | CGContextRef | ctx, |
| CGTextDrawingMode | mode | ||
| ) |
| void CGContextSetTextMatrix | ( | CGContextRef | ctx, |
| CGAffineTransform | transform | ||
| ) |
| void CGContextSetTextPosition | ( | CGContextRef | ctx, |
| float | x, | ||
| float | y | ||
| ) |
| void CGContextShowGlyphs | ( | CGContextRef | ctx, |
| const CGGlyph | g[], | ||
| size_t | count | ||
| ) |
| void CGContextShowGlyphsAtPoint | ( | CGContextRef | ctx, |
| float | x, | ||
| float | y, | ||
| const CGGlyph | g[], | ||
| size_t | count | ||
| ) |
| void CGContextShowText | ( | CGContextRef | ctx, |
| const char * | cstring, | ||
| size_t | length | ||
| ) |
| void CGContextShowTextAtPoint | ( | CGContextRef | ctx, |
| float | x, | ||
| float | y, | ||
| const char * | cstring, | ||
| size_t | length | ||
| ) |
Text convenience functions. CGContextShowTextAtPoint()
| void CGContextStrokePath | ( | CGContextRef | ctx | ) |
| void CGContextStrokeRect | ( | CGContextRef | ctx, |
| CGRect | rect | ||
| ) |
| void CGContextStrokeRectWithWidth | ( | CGContextRef | ctx, |
| CGRect | rect, | ||
| float | width | ||
| ) |
CGContextStrokeRectWithWidth()
| void CGContextSynchronize | ( | CGContextRef | ctx | ) |
| void CGContextTranslateCTM | ( | CGContextRef | ctx, |
| float | tx, | ||
| float | ty | ||
| ) |