Mac OS 9
CGContext.h
Go to the documentation of this file.
1 
20 #ifndef __CGCONTEXT__
21 #define __CGCONTEXT__
22 
23 #ifndef __CGBASE__
24 #include <CGBase.h>
25 #endif
26 
27 #ifndef __CGAFFINETRANSFORM__
28 #include <CGAffineTransform.h>
29 #endif
30 
31 #ifndef __CGCOLORSPACE__
32 #include <CGColorSpace.h>
33 #endif
34 
35 #ifndef __CGFONT__
36 #include <CGFont.h>
37 #endif
38 
39 #ifndef __CGIMAGE__
40 #include <CGImage.h>
41 #endif
42 
43 #ifndef __CGPDFDOCUMENT__
44 #include <CGPDFDocument.h>
45 #endif
46 
47 #if PRAGMA_ONCE
48 #pragma once
49 #endif
50 
51 #ifdef __cplusplus
52 extern "C"
53 {
54 #endif
55 
56 #if PRAGMA_IMPORT
57 #pragma import on
58 #endif
59 
60 #if PRAGMA_STRUCT_ALIGN
61 #pragma options align = mac68k
62 #elif PRAGMA_STRUCT_PACKPUSH
63 #pragma pack(push, 2)
64 #elif PRAGMA_STRUCT_PACK
65 #pragma pack(2)
66 #endif
67 
68 #if PRAGMA_ENUM_ALWAYSINT
69 #if defined(__fourbyteints__) && !__fourbyteints__
70 #define __CGCONTEXT__RESTORE_TWOBYTEINTS
71 #pragma fourbyteints on
72 #endif
73 #pragma enumsalwaysint on
74 #elif PRAGMA_ENUM_OPTIONS
75 #pragma option enum =int
76 #elif PRAGMA_ENUM_PACK
77 #if __option(pack_enums)
78 #define __CGCONTEXT__RESTORE_PACKED_ENUMS
79 #pragma options(!pack_enums)
80 #endif
81 #endif
82 
83  typedef struct CGContext *CGContextRef;
84  typedef struct CGPattern *CGPatternRef;
85  /* Line join styles. */
86  enum CGLineJoin
87  {
88  kCGLineJoinMiter = 0,
89  kCGLineJoinRound = 1,
90  kCGLineJoinBevel = 2
91  };
92  typedef enum CGLineJoin CGLineJoin;
93 
94  /* Line cap styles. */
95  enum CGLineCap
96  {
97  kCGLineCapButt = 0,
98  kCGLineCapRound = 1,
99  kCGLineCapSquare = 2
100  };
101  typedef enum CGLineCap CGLineCap;
102 
103  /* Drawing modes for paths. */
104  enum CGPathDrawingMode
105  {
106  kCGPathFill = 0,
107  kCGPathEOFill = 1,
108  kCGPathStroke = 2,
109  kCGPathFillStroke = 3,
110  kCGPathEOFillStroke = 4
111  };
112  typedef enum CGPathDrawingMode CGPathDrawingMode;
113 
114  /* Drawing modes for text. */
115  enum CGTextDrawingMode
116  {
117  kCGTextFill = 0,
118  kCGTextStroke = 1,
119  kCGTextFillStroke = 2,
120  kCGTextInvisible = 3,
121  kCGTextFillClip = 4,
122  kCGTextStrokeClip = 5,
123  kCGTextFillStrokeClip = 6,
124  kCGTextClip = 7
125  };
126  typedef enum CGTextDrawingMode CGTextDrawingMode;
127 
128  /* Text encodings. */
129  enum CGTextEncoding
130  {
131  kCGEncodingFontSpecific = 0,
132  kCGEncodingMacRoman = 1
133  };
134  typedef enum CGTextEncoding CGTextEncoding;
135 
136  enum CGInterpolationQuality
137  {
138  kCGInterpolationDefault = 0, /* Let the context decide. */
139  kCGInterpolationNone = 1, /* Never interpolate. */
140  kCGInterpolationLow = 2, /* Fast, low quality. */
141  kCGInterpolationHigh = 3 /* Slow, high quality. */
142  };
143  typedef enum CGInterpolationQuality CGInterpolationQuality;
144 
146  /* Push a copy of the current graphics state onto the graphics state
147  * stack. Note that the path is not considered part of the gstate, and is
148  * not saved. */
157  void
158  CGContextSaveGState(CGContextRef ctx);
159 
160  /* Restore the current graphics state from the one on the top of the
161  * graphics state stack, popping the graphics state stack in the
162  * process. */
171  void
172  CGContextRestoreGState(CGContextRef ctx);
173 
175  /* Scale the current graphics state's transformation matrix (the CTM) by
176  * `(sx, sy)'. */
185  void
186  CGContextScaleCTM(CGContextRef ctx, float sx, float sy);
187 
188  /* Translate the current graphics state's transformation matrix (the CTM)
189  * by `(tx, ty)'. */
198  void
199  CGContextTranslateCTM(CGContextRef ctx, float tx, float ty);
200 
201  /* Rotate the current graphics state's transformation matrix (the CTM) by
202  * `angle' radians. */
211  void
212  CGContextRotateCTM(CGContextRef ctx, float angle);
213 
214  /* Concatenate the current graphics state's transformation matrix (the CTM)
215  * with the affine transform `transform'. */
224  void
225  CGContextConcatCTM(CGContextRef ctx, CGAffineTransform transform);
226 
227  /* Return the current graphics state's transformation matrix. */
237  CGContextGetCTM(CGContextRef ctx);
238 
240  /* Set the line width in the current graphics state to `width'. */
249  void
250  CGContextSetLineWidth(CGContextRef ctx, float width);
251 
252  /* Set the line cap in the current graphics state to `cap'. */
261  void
262  CGContextSetLineCap(CGContextRef ctx, CGLineCap cap);
263 
264  /* Set the line join in the current graphics state to `join'. */
273  void
274  CGContextSetLineJoin(CGContextRef ctx, CGLineJoin join);
275 
276  /* Set the miter limit in the current graphics state to `limit'. */
285  void
286  CGContextSetMiterLimit(CGContextRef ctx, float limit);
287 
288  /* Set the line dash patttern in the current graphics state. */
297  void
298  CGContextSetLineDash(CGContextRef ctx, float phase, const float lengths[],
299  size_t count);
300 
301  /* Set the path flatness parameter in the current graphics state to
302  * `flatness'. */
311  void
312  CGContextSetFlatness(CGContextRef ctx, float flatness);
313 
314  /* Set the alpha value in the current graphics state to `alpha'. */
323  void
324  CGContextSetAlpha(CGContextRef ctx, float alpha);
325 
327  /* Note that a context has a single path in use at any time: a path is not
328  * part of the graphics state. */
329  /* Begin a new path. The old path is discarded. */
338  void
339  CGContextBeginPath(CGContextRef ctx);
340 
341  /* Start a new subpath at point `(x, y)' in the context's path. */
350  void
351  CGContextMoveToPoint(CGContextRef ctx, float x, float y);
352 
353  /* Append a straight line segment from the current point to `(x, y)'. */
362  void
363  CGContextAddLineToPoint(CGContextRef ctx, float x, float y);
364 
365  /* Append a cubic Bezier curve from the current point to `(x,y)', with
366  * control points `(cp1x, cp1y)' and `(cp2x, cp2y)'. */
375  void
376  CGContextAddCurveToPoint(CGContextRef ctx, float cp1x, float cp1y, float cp2x,
377  float cp2y, float x, float y);
378 
379  /* Append a quadratic curve from the current point to `(x, y)', with
380  * control point `(cpx, cpy)'. */
389  void
390  CGContextAddQuadCurveToPoint(CGContextRef ctx, float cpx, float cpy, float x,
391  float y);
392 
393  /* Close the current subpath of the context's path. */
402  void
403  CGContextClosePath(CGContextRef ctx);
404 
406  /* Add a single rect to the context's path. */
415  void
416  CGContextAddRect(CGContextRef ctx, CGRect rect);
417 
418  /* Add a set of rects to the context's path. */
427  void
428  CGContextAddRects(CGContextRef ctx, const CGRect rects[], size_t count);
429 
430  /* Add a set of lines to the context's path. */
439  void
440  CGContextAddLines(CGContextRef ctx, const CGPoint points[], size_t count);
441 
442  /* Add an arc of a circle to the context's path, possibly preceded by a
443  * straight line segment. `(x, y)' is the center of the arc; `radius' is
444  * its radius; `startAngle' is the angle to the first endpoint of the arc;
445  * `endAngle' is the angle to the second endpoint of the arc; and
446  * `clockwise' is 1 if the arc is to be drawn clockwise, 0 otherwise.
447  * `startAngle' and `endAngle' are measured in radians. */
456  void
457  CGContextAddArc(CGContextRef ctx, float x, float y, float radius,
458  float startAngle, float endAngle, int clockwise);
459 
460  /* Add an arc of a circle to the context's path, possibly preceded by a
461  * straight line segment. `radius' is the radius of the arc. The arc is
462  * tangent to the line from the current point to `(x1, y1)', and the line
463  * from `(x1, y1)' to `(x2, y2)'. */
472  void
473  CGContextAddArcToPoint(CGContextRef ctx, float x1, float y1, float x2, float y2,
474  float radius);
475 
477  /* Return 1 if the context's path contains no elements, 0 otherwise. */
486  int CGContextIsPathEmpty(CGContextRef ctx);
487 
488  /* Return the current point of the current subpath of the context's
489  * path. */
498  CGPoint
499  CGContextGetPathCurrentPoint(CGContextRef ctx);
500 
501  /* Return the bounding box of the context's path. The bounding box is the
502  * smallest rectangle completely enclosing all points in the path,
503  * including control points for Bezier and quadratic curves. */
512  CGRect
513  CGContextGetPathBoundingBox(CGContextRef ctx);
514 
516  /* Draw the context's path using drawing mode `mode'. */
525  void
526  CGContextDrawPath(CGContextRef ctx, CGPathDrawingMode mode);
527 
529  /* Fill the context's path using the winding-number fill rule. Any open
530  * subpath of the path is implicitly closed. */
539  void
540  CGContextFillPath(CGContextRef ctx);
541 
542  /* Fill the context's path using the even-odd fill rule. Any open subpath
543  * of the path is implicitly closed. */
552  void
553  CGContextEOFillPath(CGContextRef ctx);
554 
555  /* Stroke the context's path. */
564  void
565  CGContextStrokePath(CGContextRef ctx);
566 
567  /* Fill `rect' with the current fill color. */
576  void
577  CGContextFillRect(CGContextRef ctx, CGRect rect);
578 
579  /* Fill `rects', an array of `count' CGRects, with the current fill
580  * color. */
589  void
590  CGContextFillRects(CGContextRef ctx, const CGRect rects[], size_t count);
591 
592  /* Stroke `rect' with the current stroke color and the current linewidth. */
601  void
602  CGContextStrokeRect(CGContextRef ctx, CGRect rect);
603 
604  /* Stroke `rect' with the current stroke color, using `width' as the the
605  * line width. */
614  void
615  CGContextStrokeRectWithWidth(CGContextRef ctx, CGRect rect, float width);
616 
617  /* Clear `rect' (that is, set the region within the rect to
618  * transparent). */
627  void
628  CGContextClearRect(CGContextRef c, CGRect rect);
629 
631  /* Intersect the context's path with the current clip path and use the
632  * resulting path as the clip path for subsequent rendering operations.
633  * Use the winding-number fill rule for deciding what's inside the path. */
642  void
643  CGContextClip(CGContextRef ctx);
644 
645  /* Intersect the context's path with the current clip path and use the
646  * resulting path as the clip path for subsequent rendering operations.
647  * Use the even-odd fill rule for deciding what's inside the path. */
656  void
657  CGContextEOClip(CGContextRef ctx);
658 
660  /* Intersect the current clipping path with `rect'. Note that this
661  * function resets the context's path to the empty path. */
670  void
671  CGContextClipToRect(CGContextRef ctx, CGRect rect);
672 
673  /* Intersect the current clipping path with the clipping region formed by
674  * creating a path consisting of all rects in `rects'. Note that this
675  * function resets the context's path to the empty path. */
684  void
685  CGContextClipToRects(CGContextRef ctx, const CGRect rects[], size_t count);
686 
688  /* Set the components of the current fill color in the context `ctx' to the
689  * values specifed by `components'. The number of elements in `components'
690  * must be one greater than the number of components in the current fill
691  * colorspace (N color components + 1 alpha component). The current fill
692  * colorspace must not be a pattern colorspace. */
701  void
702  CGContextSetFillColorSpace(CGContextRef ctx, CGColorSpaceRef colorspace);
703 
704  /* Set the components of the current fill color in the context `ctx' to the
705  * values specifed by `components'. The number of elements in `components'
706  * must be one greater than the number of components in the current fill
707  * colorspace (N color components + 1 alpha component). The current fill
708  * colorspace must not be a pattern colorspace. */
717  void
718  CGContextSetStrokeColorSpace(CGContextRef ctx, CGColorSpaceRef colorspace);
719 
721  /* Set the components of the current fill color in the context `c' to the
722  * values specifed by `components'. The number of elements in `components'
723  * must be one greater than the number of components in the current fill
724  * colorspace (N color components + 1 alpha component). The current fill
725  * colorspace must not be a pattern colorspace. */
734  void
735  CGContextSetFillColor(CGContextRef c, const float components[]);
736 
737  /* Set the components of the current stroke color in the context `c' to the
738  * values specifed by `components'. The number of elements in `components'
739  * must be one greater than the number of components in the current stroke
740  * colorspace (N color components + 1 alpha component). The current stroke
741  * colorspace must not be a pattern colorspace. */
750  void
751  CGContextSetStrokeColor(CGContextRef c, const float components[]);
752 
754  /* Set the components of the current fill color in the context `c' to the
755  * values specifed by `components', and set the current fill pattern to
756  * `pattern'. The number of elements in `components' must be one greater
757  * than the number of components in the current fill colorspace (N color
758  * components + 1 alpha component). The current fill colorspace must be a
759  * pattern colorspace. */
768  void
769  CGContextSetFillPattern(CGContextRef c, CGPatternRef pattern,
770  const float components[]);
771 
772  /* Set the components of the current stroke color in the context `c' to the
773  * values specifed by `components', and set the current stroke pattern to
774  * `pattern'. The number of elements in `components' must be one greater
775  * than the number of components in the current stroke colorspace (N color
776  * components + 1 alpha component). The current stroke colorspace must be
777  * a pattern colorspace. */
786  void
787  CGContextSetStrokePattern(CGContextRef c, CGPatternRef pattern,
788  const float components[]);
789 
791  /* Set the current fill colorspace in the context `c' to `DeviceGray' and
792  * set the components of the current fill color to `(gray, alpha)'. */
801  void
802  CGContextSetGrayFillColor(CGContextRef ctx, float gray, float alpha);
803 
804  /* Set the current stroke colorspace in the context `c' to `DeviceGray' and
805  * set the components of the current stroke color to `(gray, alpha)'. */
814  void
815  CGContextSetGrayStrokeColor(CGContextRef ctx, float gray, float alpha);
816 
817  /* Set the current fill colorspace in the context `c' to `DeviceRGB' and
818  * set the components of the current fill color to `(red, green, blue,
819  * alpha)'. */
828  void
829  CGContextSetRGBFillColor(CGContextRef ctx, float red, float green, float blue,
830  float alpha);
831 
832  /* Set the current stroke colorspace in the context `c' to `DeviceRGB' and
833  * set the components of the current stroke color to `(red, green, blue,
834  * alpha)'. */
843  void
844  CGContextSetRGBStrokeColor(CGContextRef ctx, float red, float green, float blue,
845  float alpha);
846 
847  /* Set the current fill colorspace in the context `c' to `DeviceCMYK' and
848  * set the components of the current fill color to `(cyan, magenta, yellow,
849  * black, alpha)'. */
858  void
859  CGContextSetCMYKFillColor(CGContextRef ctx, float cyan, float magenta,
860  float yellow, float black, float alpha);
861 
862  /* Set the current stroke colorspace in the context `c' to `DeviceCMYK' and
863  * set the components of the current stroke color to `(cyan, magenta,
864  * yellow, black, alpha)'. */
873  void
874  CGContextSetCMYKStrokeColor(CGContextRef ctx, float cyan, float magenta,
875  float yellow, float black, float alpha);
876 
878  /* Set the rendering intent in the graphics state to `intent'. */
887  void
888  CGContextSetRenderingIntent(CGContextRef c, CGColorRenderingIntent intent);
889 
891  /* Draw `image' in the rectangular area specified by `rect'. The image is
892  * scaled, if necessary, to fit into `rect'. */
901  void
902  CGContextDrawImage(CGContextRef ctx, CGRect rect, CGImageRef image);
903 
904  /* Return the interpolation quality for image rendering of the context `c'.
905  * The interpolation quality is a gstate-parameter which controls the level
906  * of interpolation performed when an image is interpolated (for example,
907  * when scaling the image). Note that it is merely a hint to the context:
908  * not all contexts support all interpolation quality levels. */
917  CGInterpolationQuality
919 
920  /* Set the interpolation quality of the context `c' to `quality'. */
929  void
931  CGInterpolationQuality quality);
932 
934  /* Set the current character spacing in the context `ctx' to `spacing'. The
935  * character spacing is added to the displacement between the origin of one
936  * character and the origin of the next. */
945  void
946  CGContextSetCharacterSpacing(CGContextRef ctx, float spacing);
947 
948  /* Set the user-space point at which text will be drawn to (x,y). */
957  void
958  CGContextSetTextPosition(CGContextRef ctx, float x, float y);
959 
960  /* Return the current user-space point at which text will be drawn to (x,y). */
969  CGPoint
970  CGContextGetTextPosition(CGContextRef ctx);
971 
972  /* Set the text matrix to `transform'. */
981  void
982  CGContextSetTextMatrix(CGContextRef ctx, CGAffineTransform transform);
983 
984  /* Return the text matrix. */
994  CGContextGetTextMatrix(CGContextRef ctx);
995 
996  /* Set the text drawing mode to `mode'. */
1005  void
1006  CGContextSetTextDrawingMode(CGContextRef ctx, CGTextDrawingMode mode);
1007 
1008  /* Set the current font to `font'. */
1017  void
1018  CGContextSetFont(CGContextRef ctx, CGFontRef font);
1019 
1020  /* Set the current font size to `size'. */
1029  void
1030  CGContextSetFontSize(CGContextRef ctx, float size);
1031 
1032  /* Attempts to find the font named `name'. If successful, scales it to
1033  * `size' units in user space. `textEncoding' specifies how to translate
1034  * from bytes to glyphs. */
1043  void
1044  CGContextSelectFont(CGContextRef ctx, const char *name, float size,
1045  CGTextEncoding textEncoding);
1046 
1047  /* Draw `string', a string of `length' bytes, at the point specified by the
1048  * current text matrix. Each byte of the string is mapped through the
1049  * encoding vector of the current font to obtain the glyph to display. */
1058  void
1059  CGContextShowText(CGContextRef ctx, const char *cstring, size_t length);
1060 
1061  /* Draw the glyphs pointed to by `g', an array of `count' glyphs, at the
1062  * point specified by the current text matrix. */
1071  void
1072  CGContextShowGlyphs(CGContextRef ctx, const CGGlyph g[], size_t count);
1073 
1075  /* Draw `string', a string of `length' bytes, at the point `(x, y)',
1076  * specified in user space. Each byte of the string is mapped through the
1077  * encoding vector of the current font to obtain the glyph to display. */
1086  void
1087  CGContextShowTextAtPoint(CGContextRef ctx, float x, float y,
1088  const char *cstring, size_t length);
1089 
1090  /* Display the glyphs pointed to by `g', an array of `count' glyph ids, at
1091  * the point `(x, y)', specified in user space. */
1100  void
1101  CGContextShowGlyphsAtPoint(CGContextRef ctx, float x, float y,
1102  const CGGlyph g[], size_t count);
1103 
1105  /* Draw `page' in `document' in the rectangular area specified by `rect'.
1106  * The media box of the page is scaled, if necessary, to fit into
1107  * `rect'. */
1116  void
1117  CGContextDrawPDFDocument(CGContextRef ctx, CGRect rect,
1118  CGPDFDocumentRef document, int page);
1119 
1121  /* Begin a new page. */
1130  void
1131  CGContextBeginPage(CGContextRef ctx, const CGRect *mediaBox);
1132 
1133  /* End the current page. */
1142  void
1143  CGContextEndPage(CGContextRef ctx);
1144 
1146  /* Increment the retain count of `ctx' and return it. All contexts are
1147  * created with an initial retain count of 1. */
1156  CGContextRef
1157  CGContextRetain(CGContextRef ctx);
1158 
1159  /* Decrement the retain count of `ctx'. If the retain count reaches 0,
1160  * then free `ctx' and any associated resources. */
1169  void
1170  CGContextRelease(CGContextRef ctx);
1171 
1172  /* Flush all drawing to the destination. */
1181  void
1182  CGContextFlush(CGContextRef ctx);
1183 
1184  /* Synchronized drawing. */
1193  void
1194  CGContextSynchronize(CGContextRef ctx);
1195 
1197  /* Turn off antialiasing if `shouldAntialias' is zero; turn it on
1198  * otherwise. This parameter is part of the graphics state. */
1207  void
1208  CGContextSetShouldAntialias(CGContextRef ctx, int shouldAntialias);
1209 
1210 #if PRAGMA_ENUM_ALWAYSINT
1211 #pragma enumsalwaysint reset
1212 #ifdef __CGCONTEXT__RESTORE_TWOBYTEINTS
1213 #pragma fourbyteints off
1214 #endif
1215 #elif PRAGMA_ENUM_OPTIONS
1216 #pragma option enum =reset
1217 #elif defined(__CGCONTEXT__RESTORE_PACKED_ENUMS)
1218 #pragma options(pack_enums)
1219 #endif
1220 
1221 #if PRAGMA_STRUCT_ALIGN
1222 #pragma options align = reset
1223 #elif PRAGMA_STRUCT_PACKPUSH
1224 #pragma pack(pop)
1225 #elif PRAGMA_STRUCT_PACK
1226 #pragma pack()
1227 #endif
1228 
1229 #ifdef PRAGMA_IMPORT_OFF
1230 #pragma import off
1231 #elif PRAGMA_IMPORT
1232 #pragma import reset
1233 #endif
1234 
1235 #ifdef __cplusplus
1236 }
1237 #endif
1238 
1239 #endif /* __CGCONTEXT__ */
xxx put contents here xxx
xxx put contents here xxx
CoreGraphics color space.
void CGContextClipToRects(CGContextRef ctx, const CGRect rects[], size_t count)
void CGContextRelease(CGContextRef ctx)
void CGContextRestoreGState(CGContextRef ctx)
void CGContextDrawPath(CGContextRef ctx, CGPathDrawingMode mode)
void CGContextAddQuadCurveToPoint(CGContextRef ctx, float cpx, float cpy, float x, float y)
void CGContextDrawPDFDocument(CGContextRef ctx, CGRect rect, CGPDFDocumentRef document, int page)
void CGContextSetCharacterSpacing(CGContextRef ctx, float spacing)
CGAffineTransform CGContextGetCTM(CGContextRef ctx)
CGPoint CGContextGetTextPosition(CGContextRef ctx)
void CGContextSetFillPattern(CGContextRef c, CGPatternRef pattern, const float components[])
CGAffineTransform CGContextGetTextMatrix(CGContextRef ctx)
void CGContextFlush(CGContextRef ctx)
void CGContextClip(CGContextRef ctx)
void CGContextStrokePath(CGContextRef ctx)
void CGContextAddCurveToPoint(CGContextRef ctx, float cp1x, float cp1y, float cp2x, float cp2y, float x, float y)
void CGContextFillPath(CGContextRef ctx)
void CGContextSetCMYKFillColor(CGContextRef ctx, float cyan, float magenta, float yellow, float black, float alpha)
void CGContextSetLineJoin(CGContextRef ctx, CGLineJoin join)
void CGContextAddRects(CGContextRef ctx, const CGRect rects[], size_t count)
void CGContextSetTextPosition(CGContextRef ctx, float x, float y)
void CGContextEndPage(CGContextRef ctx)
void CGContextDrawImage(CGContextRef ctx, CGRect rect, CGImageRef image)
void CGContextSetFlatness(CGContextRef ctx, float flatness)
void CGContextSetTextDrawingMode(CGContextRef ctx, CGTextDrawingMode mode)
void CGContextEOClip(CGContextRef ctx)
void CGContextScaleCTM(CGContextRef ctx, float sx, float sy)
void CGContextFillRect(CGContextRef ctx, CGRect rect)
CGInterpolationQuality CGContextGetInterpolationQuality(CGContextRef c)
void CGContextAddArc(CGContextRef ctx, float x, float y, float radius, float startAngle, float endAngle, int clockwise)
void CGContextSetShouldAntialias(CGContextRef ctx, int shouldAntialias)
void CGContextSetRenderingIntent(CGContextRef c, CGColorRenderingIntent intent)
int CGContextIsPathEmpty(CGContextRef ctx)
void CGContextAddRect(CGContextRef ctx, CGRect rect)
void CGContextShowTextAtPoint(CGContextRef ctx, float x, float y, const char *cstring, size_t length)
void CGContextSetLineCap(CGContextRef ctx, CGLineCap cap)
void CGContextSetMiterLimit(CGContextRef ctx, float limit)
void CGContextSetRGBStrokeColor(CGContextRef ctx, float red, float green, float blue, float alpha)
void CGContextAddLineToPoint(CGContextRef ctx, float x, float y)
void CGContextSetTextMatrix(CGContextRef ctx, CGAffineTransform transform)
void CGContextSetFont(CGContextRef ctx, CGFontRef font)
void CGContextClipToRect(CGContextRef ctx, CGRect rect)
void CGContextSynchronize(CGContextRef ctx)
CGContextRef CGContextRetain(CGContextRef ctx)
void CGContextFillRects(CGContextRef ctx, const CGRect rects[], size_t count)
void CGContextSetLineWidth(CGContextRef ctx, float width)
void CGContextTranslateCTM(CGContextRef ctx, float tx, float ty)
void CGContextRotateCTM(CGContextRef ctx, float angle)
void CGContextMoveToPoint(CGContextRef ctx, float x, float y)
void CGContextSetCMYKStrokeColor(CGContextRef ctx, float cyan, float magenta, float yellow, float black, float alpha)
void CGContextSetLineDash(CGContextRef ctx, float phase, const float lengths[], size_t count)
void CGContextStrokeRectWithWidth(CGContextRef ctx, CGRect rect, float width)
void CGContextClearRect(CGContextRef c, CGRect rect)
void CGContextSetGrayStrokeColor(CGContextRef ctx, float gray, float alpha)
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 CGContextSetFillColorSpace(CGContextRef ctx, CGColorSpaceRef colorspace)
void CGContextSetGrayFillColor(CGContextRef ctx, float gray, float alpha)
void CGContextSetStrokeColor(CGContextRef c, const float components[])
void CGContextSetStrokePattern(CGContextRef c, CGPatternRef pattern, const float components[])
void CGContextClosePath(CGContextRef ctx)
void CGContextSetInterpolationQuality(CGContextRef c, CGInterpolationQuality quality)
void CGContextAddLines(CGContextRef ctx, const CGPoint points[], size_t count)
void CGContextEOFillPath(CGContextRef ctx)
void CGContextShowGlyphs(CGContextRef ctx, const CGGlyph g[], size_t count)
void CGContextBeginPage(CGContextRef ctx, const CGRect *mediaBox)
void CGContextSetFontSize(CGContextRef ctx, float size)
void CGContextSetAlpha(CGContextRef ctx, float alpha)
void CGContextSetFillColor(CGContextRef c, const float components[])
void CGContextBeginPath(CGContextRef ctx)
void CGContextSetRGBFillColor(CGContextRef ctx, float red, float green, float blue, float alpha)
CGRect CGContextGetPathBoundingBox(CGContextRef ctx)
CGPoint CGContextGetPathCurrentPoint(CGContextRef ctx)
void CGContextAddArcToPoint(CGContextRef ctx, float x1, float y1, float x2, float y2, float radius)
void CGContextStrokeRect(CGContextRef ctx, CGRect rect)
void CGContextSelectFont(CGContextRef ctx, const char *name, float size, CGTextEncoding textEncoding)
void CGContextSaveGState(CGContextRef ctx)
void CGContextConcatCTM(CGContextRef ctx, CGAffineTransform transform)
void CGContextSetStrokeColorSpace(CGContextRef ctx, CGColorSpaceRef colorspace)
xxx put contents here xxx
CoreGraphics images.
xxx put contents here xxx
myMCE mctRGB2 green
Get the address of a particular menu color table entry.
Definition: Menus.h:3965
x
Definition: ToolUtils.h:163
Definition: CGAffineTransform.h:52
Definition: CGGeometry.h:64
Definition: CGGeometry.h:78