UIGraphics UIGraphics Class

Definition

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

public static class UIGraphics
type UIGraphics = class
Inheritance
UIGraphicsUIGraphics

Remarks

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

Properties

PDFContextBounds PDFContextBounds

Return the current bounds for the PDF page.

Methods

AddPDFContextDestination(String, CGPoint) AddPDFContextDestination(String, CGPoint)

Adds a PDF destination with the given name at the given position.

BeginImageContext(CGSize) BeginImageContext(CGSize)

Pushes a new image context and makes it the current graphics context.

BeginImageContextWithOptions(CGSize, Boolean, nfloat) BeginImageContextWithOptions(CGSize, Boolean, nfloat)

Pushes a new image context and makes it the current graphics context.

BeginPDFContext(NSMutableData, CGRect, NSDictionary) BeginPDFContext(NSMutableData, CGRect, NSDictionary)

Pushes a new PDF rendering context and make it the current graphics context.

BeginPDFContext(String, CGRect, CGPDFInfo) BeginPDFContext(String, CGRect, CGPDFInfo)

Pushes a new PDF rendering context and make it the current graphics context.

BeginPDFContext(String, CGRect, NSDictionary) BeginPDFContext(String, CGRect, NSDictionary)

Pushes a new PDF rendering context and make it the current graphics context.

BeginPDFPage() BeginPDFPage()

Starts a new page using the bounds from the initial PDF context.

BeginPDFPage(CGRect, NSDictionary) BeginPDFPage(CGRect, NSDictionary)

Starts a new page using the bounds from the initial PDF context.

EndImageContext() EndImageContext()

Pops the current image context.

EndPDFContent() EndPDFContent()

Closes the PDF context and pops it from the stack.

GetCurrentContext() GetCurrentContext()

Returns the current graphics context

GetImageFromCurrentImageContext() GetImageFromCurrentImageContext()

Returns the contents of the current context as an image.

PopContext() PopContext()

Pops the top context and sets the previous context as the default context.

PushContext(CGContext) PushContext(CGContext)

Manually pushes a CGContext into the UIKit graphics context stack.

RectClip(CGRect) RectClip(CGRect)

Intersects the current clipping path with the specified rectangle.

RectFill(CGRect) RectFill(CGRect)

Fills a rectangle with the current color on the current context.

RectFillUsingBlendMode(CGRect, CGBlendMode) RectFillUsingBlendMode(CGRect, CGBlendMode)

Fills with the current fill color, using .

RectFrame(CGRect) RectFrame(CGRect)

Draws a frame inside the specified rectangle.

RectFrameUsingBlendMode(CGRect, CGBlendMode) RectFrameUsingBlendMode(CGRect, CGBlendMode)

Draws a frame inside the specified rectangle and blending it with .

SetPDFContextDestination(String, CGRect) SetPDFContextDestination(String, CGRect)

Sets the PDF destination with the given name at the given position.

SetPDFContextURL(NSUrl, CGRect) SetPDFContextURL(NSUrl, CGRect)

Links the url to the specified rectangle on the PDF page.

Applies to