MonobjcMonobjc Documented Class Library
CGContext Class
NamespacesMonobjc.ApplicationServicesCGContext

[Missing <summary> documentation for "T:Monobjc.ApplicationServices.CGContext"]

Declaration Syntax
C#Visual BasicVisual C++
public static class CGContext
Public NotInheritable Class CGContext
public ref class CGContext abstract sealed
Members
All MembersMethods



IconMemberDescription
AddArc(IntPtr, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat, Int32)

Adds an arc of a circle to the current path, possibly preceded by a straight line segment

Original signature is 'void CGContextAddArc ( CGContextRef c, CGFloat x, CGFloat y, CGFloat radius, CGFloat startAngle, CGFloat endAngle, int clockwise );'

Available in Mac OS X v10.0 and later.


AddArcToPoint(IntPtr, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat)

Adds an arc of a circle to the current path, using a radius and tangent points.

Original signature is 'void CGContextAddArcToPoint ( CGContextRef c, CGFloat x1, CGFloat y1, CGFloat x2, CGFloat y2, CGFloat radius );'

Available in Mac OS X v10.0 and later.


AddCurveToPoint(IntPtr, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat)

Appends a cubic Bézier curve from the current point, using the provided control points and end point .

Original signature is 'void CGContextAddCurveToPoint ( CGContextRef c, CGFloat cp1x, CGFloat cp1y, CGFloat cp2x, CGFloat cp2y, CGFloat x, CGFloat y );'

Available in Mac OS X v10.0 and later.


AddEllipseInRect(IntPtr, CGRect)

Adds an ellipse that fits inside the specified rectangle.

Original signature is 'void CGContextAddEllipseInRect ( CGContextRef context, CGRect rect );'

Available in Mac OS X v10.4 and later.


AddLines(IntPtr, IntPtr, NSUInteger)

Adds a sequence of connected straight-line segments to the current path.

Original signature is 'void CGContextAddLines ( CGContextRef c, const CGPoint points[], size_t count );'

Available in Mac OS X v10.0 and later.


AddLineToPoint(IntPtr, CGFloat, CGFloat)

Appends a straight line segment from the current point to the provided point .

Original signature is 'void CGContextAddLineToPoint ( CGContextRef c, CGFloat x, CGFloat y );'

Available in Mac OS X v10.0 and later.


AddPath(IntPtr, IntPtr)

Adds a previously created Quartz path object to the current path in a graphics context.

Original signature is 'void CGContextAddPath ( CGContextRef context, CGPathRef path );'

Available in Mac OS X v10.2 and later.


AddQuadCurveToPoint(IntPtr, CGFloat, CGFloat, CGFloat, CGFloat)

Appends a quadratic Bézier curve from the current point, using a control point and an end point you specify.

Original signature is 'void CGContextAddQuadCurveToPoint ( CGContextRef c, CGFloat cpx, CGFloat cpy, CGFloat x, CGFloat y );'

Available in Mac OS X v10.0 and later.


AddRect(IntPtr, CGRect)

Adds a rectangular path to the current path.

Original signature is 'void CGContextAddRect ( CGContextRef c, CGRect rect );'

Available in Mac OS X v10.0 and later.


AddRects(IntPtr, IntPtr, NSUInteger)

Adds a set rectangular paths to the current path.

Original signature is 'void CGContextAddRects ( CGContextRef c, const CGRect rects[], size_t count );'

Available in Mac OS X v10.0 and later.


BeginPage(IntPtr, CGRect%)

Starts a new page in a page-based graphics context.

Original signature is 'void CGContextBeginPage ( CGContextRef c, const CGRect *mediaBox );'

Available in Mac OS X v10.0 and later.


BeginPath(IntPtr)

Creates a new empty path in a graphics context.

Original signature is 'void CGContextBeginPath ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


BeginTransparencyLayer(IntPtr, NSDictionary)

Begins a transparency layer.

Original signature is 'void CGContextBeginTransparencyLayer ( CGContextRef context, CFDictionaryRef auxiliaryInfo );'

Available in Mac OS X v10.3 and later.


BeginTransparencyLayerWithRect(IntPtr, CGRect, NSDictionary)

Begins a transparency layer whose contents are bounded by the specified rectangle.

Original signature is 'void CGContextBeginTransparencyLayerWithRect( CGContextRef context, CGRect rect, CFDictionaryRef auxiliaryInfo );'

Available in Mac OS X v10.5 and later.


ClearRect(IntPtr, CGRect)

Paints a transparent rectangle.

Original signature is 'void CGContextClearRect ( CGContextRef c, CGRect rect );'

Available in Mac OS X v10.0 and later.


Clip(IntPtr)

Modifies the current clipping path, using the nonzero winding number rule.

Original signature is 'void CGContextClip ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


ClipToMask(IntPtr, CGRect, IntPtr)

Maps a mask into the specified rectangle and intersects it with the current clipping area of the graphics context.

Original signature is 'void CGContextClipToMask ( CGContextRef c, CGRect rect, CGImageRef mask );'

Available in Mac OS X v10.4 and later.


ClipToRect(IntPtr, CGRect)

Sets the clipping path to the intersection of the current clipping path with the area defined by the specified rectangle.

Original signature is 'void CGContextClipToRect ( CGContextRef c, CGRect rect );'

Available in Mac OS X v10.0 and later.


ClipToRects(IntPtr, IntPtr, NSUInteger)

Sets the clipping path to the intersection of the current clipping path with the region defined by an array of rectangles.

Original signature is 'void CGContextClipToRects ( CGContextRef c, const CGRect rects[], size_t count );'

Available in Mac OS X v10.0 and later.


ClosePath(IntPtr)

Closes and terminates the current path’s subpath.

Original signature is 'void CGContextClosePath ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


ConcatCTM(IntPtr, CGAffineTransform)

Transforms the user coordinate system in a context using a specified matrix.

Original signature is 'void CGContextConcatCTM ( CGContextRef c, CGAffineTransform transform );'

Available in Mac OS X v10.0 and later.


ConvertPointToDeviceSpace(IntPtr, CGPoint)

Returns a point that is transformed from user space coordinates to device space coordinates.

Original signature is 'CGPoint CGContextConvertPointToDeviceSpace ( CGContextRef c, CGPoint point );'

Available in Mac OS X v10.4 and later.


ConvertPointToUserSpace(IntPtr, CGPoint)

Returns a point that is transformed from device space coordinates to user space coordinates.

Original signature is 'CGPoint CGContextConvertPointToUserSpace ( CGContextRef c, CGPoint point );'

Available in Mac OS X v10.4 and later.


ConvertRectToDeviceSpace(IntPtr, CGRect)

Returns a rectangle that is transformed from user space coordinate to device space coordinates.

Original signature is 'CGRect CGContextConvertRectToDeviceSpace ( CGContextRef c, CGRect rect );'

Available in Mac OS X v10.4 and later.


ConvertRectToUserSpace(IntPtr, CGRect)

Returns a rectangle that is transformed from device space coordinate to user space coordinates.

Original signature is 'CGRect CGContextConvertRectToUserSpace ( CGContextRef c, CGRect rect );'

Available in Mac OS X v10.4 and later.


ConvertSizeToDeviceSpace(IntPtr, CGSize)

Returns a size that is transformed from user space coordinates to device space coordinates.

Original signature is 'CGSize CGContextConvertSizeToDeviceSpace ( CGContextRef c, CGSize size );'

Available in Mac OS X v10.4 and later.


ConvertSizeToUserSpace(IntPtr, CGSize)

Returns a size that is transformed from device space coordinates to user space coordinates

Original signature is 'CGSize CGContextConvertSizeToUserSpace ( CGContextRef c, CGSize size );'

Available in Mac OS X v10.4 and later.


CopyPath(IntPtr)

Returns a Quartz path object built from the current path information in a graphics context.

Original signature is 'CGPathRef CGContextCopyPath( CGContextRef context );'

Available in Mac OS X v10.6 and later.


DrawImage(IntPtr, CGRect, IntPtr)

Draws an image into a graphics context.

Original signature is 'void CGContextDrawImage ( CGContextRef c, CGRect rect, CGImageRef image );'

Available in Mac OS X v10.0 and later.


DrawLinearGradient(IntPtr, IntPtr, CGPoint, CGPoint, CGGradientDrawingOptions)

Paints a gradient fill that varies along the line defined by the provided starting and ending points.

Original signature is 'void CGContextDrawLinearGradient( CGContextRef context, CGGradientRef gradient, CGPoint startPoint, CGPoint endPoint, CGGradientDrawingOptions options );'

Available in Mac OS X v10.5 and later.


DrawPath(IntPtr, CGPathDrawingMode)

Draws the current path using the provided drawing mode.

Original signature is 'void CGContextDrawPath ( CGContextRef c, CGPathDrawingMode mode );'

Available in Mac OS X v10.0 and later.


DrawPDFPage(IntPtr, IntPtr)

Draws a page in the current user space of a PDF context.

Original signature is 'void CGContextDrawPDFPage ( CGContextRef c, CGPDFPageRef page );'

Available in Mac OS X v10.3 and later.


DrawRadialGradient(IntPtr, IntPtr, CGPoint, CGFloat, CGPoint, CGFloat, CGGradientDrawingOptions)

Paints a gradient fill that varies along the area defined by the provided starting and ending circles.

Original signature is 'void CGContextDrawRadialGradient( CGContextRef context, CGGradientRef gradient, CGPoint startCenter, CGFloat startRadius, CGPoint endCenter, CGFloat endRadius, CGGradientDrawingOptions options );'

Available in Mac OS X v10.5 and later.


DrawShading(IntPtr, IntPtr)

Fills the clipping path of a context with the specified shading.

Original signature is 'void CGContextDrawShading ( CGContextRef c, CGShadingRef shading );'

Available in Mac OS X v10.2 and later.


DrawTiledImage(IntPtr, CGRect, IntPtr)

Repeatedly draws an image, scaled to the provided rectangle, to fill the current clip region.

Original signature is 'void CGContextDrawTiledImage( CGContextRef context, CGRect rect, CGImageRef image );'

Available in Mac OS X v10.5 and later.


EndPage(IntPtr)

Ends the current page in a page-based graphics context.

Original signature is 'void CGContextEndPage ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


EndTransparencyLayer(IntPtr)

Ends a transparency layer.

Original signature is 'void CGContextEndTransparencyLayer ( CGContextRef context );'

Available in Mac OS X v10.3 and later.


EOClip(IntPtr)

Modifies the current clipping path, using the even-odd rule.

Original signature is 'void CGContextEOClip ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


EOFillPath(IntPtr)

Paints the area within the current path, using the even-odd fill rule.

Original signature is 'void CGContextEOFillPath ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


FillEllipseInRect(IntPtr, CGRect)

Paints the area of the ellipse that fits inside the provided rectangle, using the fill color in the current graphics state.

Original signature is 'void CGContextFillEllipseInRect ( CGContextRef context, CGRect rect );'

Available in Mac OS X v10.4 and later.


FillPath(IntPtr)

Paints the area within the current path, using the nonzero winding number rule.

Original signature is 'void CGContextFillPath ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


FillRect(IntPtr, CGRect)

Paints the area contained within the provided rectangle, using the fill color in the current graphics state.

Original signature is 'void CGContextFillRect ( CGContextRef c, CGRect rect );'

Available in Mac OS X v10.0 and later.


FillRects(IntPtr, IntPtr, NSUInteger)

Paints the areas contained within the provided rectangles, using the fill color in the current graphics state.

Original signature is 'void CGContextFillRects ( CGContextRef c, const CGRect rects[], size_t count );'

Available in Mac OS X v10.0 and later.


Flush(IntPtr)

Forces all pending drawing operations in a window context to be rendered immediately to the destination device.

Original signature is 'void CGContextFlush ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


GetClipBoundingBox(IntPtr)

Returns the bounding box of a clipping path.

Original signature is 'CGRect CGContextGetClipBoundingBox ( CGContextRef c );'

Available in Mac OS X v10.3 and later.


GetCTM(IntPtr)

Returns the current transformation matrix.

Original signature is 'CGAffineTransform CGContextGetCTM ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


GetInterpolationQuality(IntPtr)

Returns the current level of interpolation quality for a graphics context.

Original signature is 'CGInterpolationQuality CGContextGetInterpolationQuality ( CGContextRef c );'

Available in Mac OS X v10.1 and later.


GetPathBoundingBox(IntPtr)

Returns the smallest rectangle that contains the current path.

Original signature is 'CGRect CGContextGetPathBoundingBox ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


GetPathCurrentPoint(IntPtr)

Returns the current point in a non-empty path.

Original signature is 'CGPoint CGContextGetPathCurrentPoint ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


GetTextMatrix(IntPtr)

Returns the current text matrix.

Original signature is 'CGAffineTransform CGContextGetTextMatrix ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


GetTextPosition(IntPtr)

Returns the location at which text is drawn.

Original signature is 'CGPoint CGContextGetTextPosition ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


GetUserSpaceToDeviceSpaceTransform(IntPtr)

Returns an affine transform that maps user space coordinates to device space coordinates.

Original signature is 'CGAffineTransform CGContextGetUserSpaceToDeviceSpaceTransform ( CGContextRef c );'

Available in Mac OS X v10.4 and later.


IsPathEmpty(IntPtr)

Indicates whether the current path contains any subpaths.

Original signature is 'bool CGContextIsPathEmpty ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


MoveToPoint(IntPtr, CGFloat, CGFloat)

Begins a new subpath at the point you specify.

Original signature is 'void CGContextMoveToPoint ( CGContextRef c, CGFloat x, CGFloat y );'

Available in Mac OS X v10.0 and later.


PathContainsPoint(IntPtr, CGPoint, CGPathDrawingMode)

Checks to see whether the specified point is contained in the current path.

Original signature is 'bool CGContextPathContainsPoint ( CGContextRef context, CGPoint point, CGPathDrawingMode mode );'

Available in Mac OS X v10.4 and later.


Release(IntPtr)

Decrements the retain count of a graphics context.

Original signature is 'void CGContextRelease ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


ReplacePathWithStrokedPath(IntPtr)

Replaces the path in the graphics context with the stroked version of the path.

Original signature is 'void CGContextReplacePathWithStrokedPath ( CGContextRef c );'

Available in Mac OS X v10.4 and later.


RestoreGState(IntPtr)

Sets the current graphics state to the state most recently saved.

Original signature is 'void CGContextRestoreGState ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


Retain(IntPtr)

Increments the retain count of a graphics context.

Original signature is 'CGContextRef CGContextRetain ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


RotateCTM(IntPtr, CGFloat)

Rotates the user coordinate system in a context.

Original signature is 'void CGContextRotateCTM ( CGContextRef c, CGFloat angle );'

Available in Mac OS X v10.0 and later.


SaveGState(IntPtr)

Pushes a copy of the current graphics state onto the graphics state stack for the context.

Original signature is 'void CGContextSaveGState ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


ScaleCTM(IntPtr, CGFloat, CGFloat)

Changes the scale of the user coordinate system in a context.

Original signature is 'void CGContextScaleCTM ( CGContextRef c, CGFloat sx, CGFloat sy );'

Available in Mac OS X v10.0 and later.


SelectFont(IntPtr, String, CGFloat, CGTextEncoding)

Sets the font and font size in a graphics context.

Original signature is 'void CGContextSelectFont ( CGContextRef c, const char *name, CGFloat size, CGTextEncoding textEncoding );'

Available in Mac OS X v10.0 and later.


SetAllowsAntialiasing(IntPtr, Boolean)

Sets whether or not to allow anti-aliasing for a graphics context.

Original signature is 'void CGContextSetAllowsAntialiasing ( CGContextRef context, bool allowsAntialiasing );'

Available in Mac OS X v10.4 and later.


SetAllowsFontSmoothing(IntPtr, Boolean)

Sets whether or not to allow font smoothing for a graphics context.

Original signature is 'void CGContextSetAllowsFontSmoothing( CGContextRef context, bool allowsFontSmoothing );'

Available in Mac OS X v10.6 and later.


SetAllowsFontSubpixelPositioning(IntPtr, Boolean)

Sets whether or not to allow subpixel positioning for a graphics context

Original signature is 'void CGContextSetAllowsFontSubpixelPositioning( CGContextRef context, bool allowsFontSubpixelPositioning );'

Available in Mac OS X v10.6 and later.


SetAllowsFontSubpixelQuantization(IntPtr, Boolean)

Sets whether or not to allow subpixel quantization for a graphics context

Original signature is 'void CGContextSetAllowsFontSubpixelQuantization( CGContextRef context, bool allowsFontSubpixelQuantization );'

Available in Mac OS X v10.6 and later.


SetAlpha(IntPtr, CGFloat)

Sets the opacity level for objects drawn in a graphics context.

Original signature is 'void CGContextSetAlpha ( CGContextRef c, CGFloat alpha );'

Available in Mac OS X v10.0 and later.


SetBlendMode(IntPtr, CGBlendMode)

Sets how Quartz composites sample values for a graphics context.

Original signature is 'void CGContextSetBlendMode ( CGContextRef context, CGBlendMode mode );'

Available in Mac OS X v10.4 and later.


SetCharacterSpacing(IntPtr, CGFloat)

Sets the current character spacing.

Original signature is 'void CGContextSetCharacterSpacing ( CGContextRef c, CGFloat spacing );'

Available in Mac OS X v10.0 and later.


SetCMYKFillColor(IntPtr, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat)

Sets the current fill color to a value in the DeviceCMYK color space.

Original signature is 'void CGContextSetCMYKFillColor ( CGContextRef c, CGFloat cyan, CGFloat magenta, CGFloat yellow, CGFloat black, CGFloat alpha );'

Available in Mac OS X v10.0 and later.


SetCMYKStrokeColor(IntPtr, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat)

Sets the current stroke color to a value in the DeviceCMYK color space.

Original signature is 'void CGContextSetCMYKStrokeColor ( CGContextRef c, CGFloat cyan, CGFloat magenta, CGFloat yellow, CGFloat black, CGFloat alpha );'

Available in Mac OS X v10.0 and later.


SetFillColor(IntPtr, IntPtr)

Sets the current fill color.

Original signature is 'void CGContextSetFillColor ( CGContextRef c, const CGFloat components[] );'

Available in Mac OS X v10.0 and later.


SetFillColorSpace(IntPtr, IntPtr)

Sets the fill color space in a graphics context.

Original signature is 'void CGContextSetFillColorSpace ( CGContextRef c, CGColorSpaceRef colorspace );'

Available in Mac OS X v10.0 and later.


SetFillColorWithColor(IntPtr, IntPtr)

Sets the current fill color in a graphics context, using a Quartz color.

Original signature is 'void CGContextSetFillColorWithColor ( CGContextRef c, CGColorRef color );'

Available in Mac OS X v10.3 and later.


SetFillPattern(IntPtr, IntPtr, IntPtr)

Sets the fill pattern in the specified graphics context.

Original signature is 'void CGContextSetFillPattern ( CGContextRef c, CGPatternRef pattern, const CGFloat components[] );'

Available in Mac OS X v10.1 and later.


SetFlatness(IntPtr, CGFloat)

Sets the accuracy of curved paths in a graphics context.

Original signature is 'void CGContextSetFlatness ( CGContextRef c, CGFloat flatness );'

Available in Mac OS X v10.0 and later.


SetFont(IntPtr, IntPtr)

Sets the platform font in a graphics context.

Original signature is 'void CGContextSetFont ( CGContextRef c, CGFontRef font );'

Available in Mac OS X v10.0 and later.


SetFontSize(IntPtr, CGFloat)

Sets the current font size.

Original signature is 'void CGContextSetFontSize ( CGContextRef c, CGFloat size );'

Available in Mac OS X v10.0 and later.


SetGrayFillColor(IntPtr, CGFloat, CGFloat)

Sets the current fill color to a value in the DeviceGray color space.

Original signature is 'void CGContextSetGrayFillColor ( CGContextRef c, CGFloat gray, CGFloat alpha );'

Available in Mac OS X v10.0 and later.


SetGrayStrokeColor(IntPtr, CGFloat, CGFloat)

Sets the current stroke color to a value in the DeviceGray color space.

Original signature is 'void CGContextSetGrayStrokeColor ( CGContextRef c, CGFloat gray, CGFloat alpha );'

Available in Mac OS X v10.0 and later.


SetInterpolationQuality(IntPtr, CGInterpolationQuality)

Sets the level of interpolation quality for a graphics context.

Original signature is 'void CGContextSetInterpolationQuality ( CGContextRef c, CGInterpolationQuality quality );'

Available in Mac OS X v10.1 and later.


SetLineCap(IntPtr, CGLineCap)

Sets the style for the endpoints of lines drawn in a graphics context.

Original signature is 'void CGContextSetLineCap ( CGContextRef c, CGLineCap cap );'

Available in Mac OS X v10.0 and later.


SetLineDash(IntPtr, CGFloat, IntPtr, NSUInteger)

Sets the pattern for dashed lines in a graphics context.

Original signature is 'void CGContextSetLineDash ( CGContextRef c, CGFloat phase, const CGFloat lengths[], size_t count );'

Available in Mac OS X v10.0 and later.


SetLineJoin(IntPtr, CGLineJoin)

Sets the style for the joins of connected lines in a graphics context.

Original signature is 'void CGContextSetLineJoin ( CGContextRef c, CGLineJoin join );'

Available in Mac OS X v10.0 and later.


SetLineWidth(IntPtr, CGFloat)

Sets the line width for a graphics context.

Original signature is 'void CGContextSetLineWidth ( CGContextRef c, CGFloat width );'

Available in Mac OS X v10.0 and later.


SetMiterLimit(IntPtr, CGFloat)

Sets the miter limit for the joins of connected lines in a graphics context.

Original signature is 'void CGContextSetMiterLimit ( CGContextRef c, CGFloat limit );'

Available in Mac OS X v10.0 and later.


SetPatternPhase(IntPtr, CGSize)

Sets the pattern phase of a context.

Original signature is 'void CGContextSetPatternPhase ( CGContextRef c, CGSize phase );'

Available in Mac OS X v10.2 and later.


SetRenderingIntent(IntPtr, CGColorRenderingIntent)

Sets the rendering intent in the current graphics state.

Original signature is 'void CGContextSetRenderingIntent ( CGContextRef c, CGColorRenderingIntent intent );'

Available in Mac OS X v10.0 and later.


SetRGBFillColor(IntPtr, CGFloat, CGFloat, CGFloat, CGFloat)

Sets the current fill color to a value in the DeviceRGB color space.

Original signature is 'void CGContextSetRGBFillColor ( CGContextRef c, CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha );'

Available in Mac OS X v10.0 and later.


SetRGBStrokeColor(IntPtr, CGFloat, CGFloat, CGFloat, CGFloat)

Sets the current stroke color to a value in the DeviceRGB color space.

Original signature is 'void CGContextSetRGBStrokeColor ( CGContextRef c, CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha );'

Available in Mac OS X v10.0 and later.


SetShadow(IntPtr, CGSize, CGFloat)

Enables shadowing in a graphics context.

Original signature is 'void CGContextSetShadow ( CGContextRef context, CGSize offset, CGFloat blur );'

Available in Mac OS X v10.3 and later.


SetShadowWithColor(IntPtr, CGSize, CGFloat, IntPtr)

Enables shadowing with color a graphics context.

Original signature is 'void CGContextSetShadowWithColor ( CGContextRef context, CGSize offset, CGFloat blur, CGColorRef color );'

Available in Mac OS X v10.3 and later.


SetShouldAntialias(IntPtr, Boolean)

Sets anti-aliasing on or off for a graphics context.

Original signature is 'void CGContextSetShouldAntialias ( CGContextRef c, bool shouldAntialias );'

Available in Mac OS X v10.0 and later.


SetShouldSmoothFonts(IntPtr, Boolean)

Enables or disables font smoothing in a graphics context.

Original signature is 'void CGContextSetShouldSmoothFonts ( CGContextRef c, bool shouldSmoothFonts );'

Available in Mac OS X v10.2 and later.


SetShouldSubpixelPositionFonts(IntPtr, Boolean)

Enables or disables subpixel positioning in a graphics context.

Original signature is 'void CGContextSetShouldSubpixelPositionFonts( CGContextRef context, bool shouldSubpixelPositionFonts );'

Available in Mac OS X v10.6 and later.


SetShouldSubpixelQuantizeFonts(IntPtr, Boolean)

Enables or disables subpixel quantization in a graphics context.

Original signature is 'void CGContextSetShouldSubpixelQuantizeFonts( CGContextRef context, bool shouldSubpixelQuantizeFonts );'

Available in Mac OS X v10.6 and later.


SetStrokeColor(IntPtr, IntPtr)

Sets the current stroke color.

Original signature is 'void CGContextSetStrokeColor ( CGContextRef c, const CGFloat components[] );'

Available in Mac OS X v10.0 and later.


SetStrokeColorSpace(IntPtr, IntPtr)

Sets the stroke color space in a graphics context.

Original signature is 'void CGContextSetStrokeColorSpace ( CGContextRef c, CGColorSpaceRef colorspace );'

Available in Mac OS X v10.0 and later.


SetStrokeColorWithColor(IntPtr, IntPtr)

Sets the current stroke color in a context, using a Quartz color.

Original signature is 'void CGContextSetStrokeColorWithColor ( CGContextRef c, CGColorRef color );'

Available in Mac OS X v10.3 and later.


SetStrokePattern(IntPtr, IntPtr, IntPtr)

Sets the stroke pattern in the specified graphics context.

Original signature is 'void CGContextSetStrokePattern ( CGContextRef c, CGPatternRef pattern, const CGFloat components[] );'

Available in Mac OS X v10.1 and later.


SetTextDrawingMode(IntPtr, CGTextDrawingMode)

Sets the current text drawing mode.

Original signature is 'void CGContextSetTextDrawingMode ( CGContextRef c, CGTextDrawingMode mode );'

Available in Mac OS X v10.0 and later.


SetTextMatrix(IntPtr, CGAffineTransform)

Sets the current text matrix.

Original signature is 'void CGContextSetTextMatrix ( CGContextRef c, CGAffineTransform t );'

Available in Mac OS X v10.0 and later.


SetTextPosition(IntPtr, CGFloat, CGFloat)

Sets the location at which text is drawn.

Original signature is 'void CGContextSetTextPosition ( CGContextRef c, CGFloat x, CGFloat y );'

Available in Mac OS X v10.0 and later.


ShowGlyphs(IntPtr, IntPtr, NSUInteger)

Displays an array of glyphs at the current text position.

Original signature is 'void CGContextShowGlyphs ( CGContextRef c, const CGGlyph g[], size_t count );'

Available in Mac OS X v10.0 and later.


ShowGlyphsAtPoint(IntPtr, CGFloat, CGFloat, IntPtr, NSUInteger)

Displays an array of glyphs at a position you specify.

Original signature is 'void CGContextShowGlyphsAtPoint ( CGContextRef c, CGFloat x, CGFloat y, const CGGlyph glyphs[], size_t count );'

Available in Mac OS X v10.0 and later.


ShowGlyphsAtPositions(IntPtr, IntPtr, IntPtr, NSUInteger)

Draws glyphs at the provided position.

Original signature is 'void CGContextShowGlyphsAtPositions( CGContextRef context, const CGGlyph glyphs[], const CGPoint positions[], size_t count );'

Available in Mac OS X v10.5 and later.


ShowGlyphsWithAdvances(IntPtr, IntPtr, CGSize, NSUInteger)

Draws an array of glyphs with varying offsets.

Original signature is 'void CGContextShowGlyphsWithAdvances ( CGContextRef c, const CGGlyph glyphs[], const CGSize advances[], size_t count );'

Available in Mac OS X v10.3 and later.


ShowText(IntPtr, String, NSUInteger)

Displays a character array at the current text position, a point specified by the current text matrix.

Original signature is 'void CGContextShowText ( CGContextRef c, const char *string, size_t length );'

Available in Mac OS X v10.0 and later.


ShowTextAtPoint(IntPtr, CGFloat, CGFloat, String, NSUInteger)

Displays a character string at a position you specify.

Original signature is 'void CGContextShowTextAtPoint ( CGContextRef c, CGFloat x, CGFloat y, const char *string, size_t length );'

Available in Mac OS X v10.0 and later.


StrokeEllipseInRect(IntPtr, CGRect)

Strokes an ellipse that fits inside the specified rectangle.

Original signature is 'void CGContextStrokeEllipseInRect ( CGContextRef context, CGRect rect );'

Available in Mac OS X v10.4 and later.


StrokeLineSegments(IntPtr, IntPtr, NSUInteger)

Strokes a sequence of line segments.

Original signature is 'void CGContextStrokeLineSegments ( CGContextRef c, const CGPoint points[], size_t count );'

Available in Mac OS X v10.4 and later.


StrokePath(IntPtr)

Paints a line along the current path.

Original signature is 'void CGContextStrokePath ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


StrokeRect(IntPtr, CGRect)

Paints a rectangular path.

Original signature is 'void CGContextStrokeRect ( CGContextRef c, CGRect rect );'

Available in Mac OS X v10.0 and later.


StrokeRectWithWidth(IntPtr, CGRect, CGFloat)

Paints a rectangular path, using the specified line width.

Original signature is 'void CGContextStrokeRectWithWidth ( CGContextRef c, CGRect rect, CGFloat width );'

Available in Mac OS X v10.0 and later.


Synchronize(IntPtr)

Marks a window context for update.

Original signature is 'void CGContextSynchronize ( CGContextRef c );'

Available in Mac OS X v10.0 and later.


TranslateCTM(IntPtr, CGFloat, CGFloat)

Changes the origin of the user coordinate system in a context.

Original signature is 'void CGContextTranslateCTM ( CGContextRef c, CGFloat tx, CGFloat ty );'

Available in Mac OS X v10.0 and later.


Inheritance Hierarchy
Object
CGContext
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)