iOS Guides | Samples

MonoTouch.UIKit.UIGraphics Class

Helper methods to paint on the screen, PDF context or bitmaps.

See Also: UIGraphics

Syntax

public static class UIGraphics

Remarks

Methods in this class generally correspond to UIGraphics* and UIRect* methods in Apple's UIKit Framework.

Requirements

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

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

See Also: Object

Public Properties

[read-only]
static
PDFContextBoundsRectangleF. Return the current bounds for the PDF page.

Public Methods

static
AddPDFContextDestination(String, PointF)
Adds a PDF destination with the given name at the given position.
static
BeginImageContext(SizeF)
Pushes a new image context and makes it the current graphics context.
static
BeginImageContextWithOptions(SizeF, Boolean, Single)
Creates a new image context and makes it the current graphics context, allowing the control of the alpha channel and the scaling factor (for Retina Display contexts).
static
BeginPDFContext(NSMutableData, RectangleF, NSDictionary)
Creates and new PDF context and makes it the current graphics context, saving to an NSMutableData object.
static
BeginPDFContext(String, RectangleF, CGPDFInfo)
Creates and new PDF context and makes it the current graphics context, saving the results to the specified file.
static
BeginPDFContext(String, RectangleF, NSDictionary)
Creates and new PDF context and makes it the current graphics context, saving to a file.
static
BeginPDFPage()
Starts a new page using the bounds from the initial PDF context.
static
BeginPDFPage(RectangleF, NSDictionary)
Starts a new page with the specified parameters.
static
EndImageContext()
Pops the current image context.
static
EndPDFContent()
Closes the PDF context and pops it from the stack.
static
GetCurrentContext() : CGContext
Returns the current graphics context
static
GetImageFromCurrentImageContext() : UIImage
Returns the contents of the current context as an image.
static
PopContext()
Pops the top context and sets the previous context as the default context.
static
PushContext(CGContext)
Manually pushes a CGContext into the UIKit graphics context stack.
static
RectClip(RectangleF)
Intersects the current clipping path with the specified rectangle.
static
RectFill(RectangleF)
Fills a rectangle with the current color on the current context.
static
RectFillUsingBlendMode(RectangleF, CGBlendMode)
Fills a rectangle with the current color on the current context using the specied blending mode.
static
RectFrame(RectangleF)
Draws a frame inside the specified rectangle
static
RectFrameUsingBlendMode(RectangleF, CGBlendMode)
Draws a frame inside the specified rectangle using the specified blend mode.
static
SetPDFContextDestination(String, RectangleF)
Sets the PDF destination with the given name at the given position.
static
SetPDFContextURL(NSUrl, RectangleF)
Links the url to the specified rectangle on the PDF page.