iOS Guides | Samples

MonoTouch.UIKit.UIGraphicsRendererContext Class

Base class defining rendering contexts.

See Also: UIGraphicsRendererContext

Syntax

[MonoTouch.Foundation.Register("UIGraphicsRendererContext", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 10, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.TvOS, 10, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class UIGraphicsRendererContext : NSObject

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIGraphicsRendererContext are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
CGContextCGContext. Gets a CGContext corresponding to this UIGraphicsRendererContext.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
FormatUIGraphicsRendererFormat. Gets the active UIGraphicsRendererFormat.

Public Methods

ClipToRect(RectangleF)
Clips (or "crops") the image to the specified rect.
FillRect(RectangleF)
Fills the rect with the active color.
FillRect(RectangleF, CGBlendMode)
Blends the active color into the rect.
StrokeRect(RectangleF)
Draws the rect without filling its interior.
StrokeRect(RectangleF, CGBlendMode)
Draws the rect edges using blendMode and does not fill the interior.