iOS Guides | Samples

UIKit.UIGraphicsRendererContext Class

Base class defining rendering contexts.

See Also: UIGraphicsRendererContext

Syntax

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

Related content

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of UIKit.UIGraphicsRendererContext are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.

Protected Constructors

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(CGRect)
Clips (or "crops") the image to the specified rect.
FillRect(CGRect)
Fills the rect with the active color.
FillRect(CGRect, CGBlendMode)
Paints with the current fill color, blending with .
StrokeRect(CGRect)
Draws the rect without filling its interior.
StrokeRect(CGRect, CGBlendMode)
Draws the path of using the current stroke color, blending with .