Bearbeiten

Freigeben über


UIGraphics Class

Definition

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

public static class UIGraphics
type UIGraphics = class
Inheritance
UIGraphics

Remarks

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

Properties

PDFContextBounds

Return the current bounds for the PDF page.

Methods

AddPDFContextDestination(String, CGPoint)

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

BeginImageContext(CGSize)

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

BeginImageContextWithOptions(CGSize, Boolean, nfloat)

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

BeginPDFContext(NSMutableData, CGRect, NSDictionary)

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

BeginPDFContext(String, CGRect, CGPDFInfo)

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

BeginPDFContext(String, CGRect, NSDictionary)

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

BeginPDFPage()

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

BeginPDFPage(CGRect, NSDictionary)

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

EndImageContext()

Pops the current image context.

EndPDFContent()

Closes the PDF context and pops it from the stack.

GetCurrentContext()

Returns the current graphics context

GetImageFromCurrentImageContext()

Returns the contents of the current context as an image.

PopContext()

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

PushContext(CGContext)

Manually pushes a CGContext into the UIKit graphics context stack.

RectClip(CGRect)

Intersects the current clipping path with the specified rectangle.

RectFill(CGRect)

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

RectFillUsingBlendMode(CGRect, CGBlendMode)

Fills with the current fill color, using .

RectFrame(CGRect)

Draws a frame inside the specified rectangle.

RectFrameUsingBlendMode(CGRect, CGBlendMode)

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

SetPDFContextDestination(String, CGRect)

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

SetPDFContextURL(NSUrl, CGRect)

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

Applies to