iOS Guides | Samples

UIKit.UIGraphicsRendererContext Class

Base class defining rendering contexts.

See Also: UIGraphicsRendererContext


[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


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

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

CGContextCGContext. Gets a CGContext corresponding to this UIGraphicsRendererContext.
ClassHandleIntPtr. The handle for this class.
FormatUIGraphicsRendererFormat. Gets the active UIGraphicsRendererFormat.

Public Methods

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