Configure your app's drawing environment using colors, renderers, draw paths, strings, and shadows.
--使用颜色、渲染器、绘制路径、字符串和阴影来配置应用程序的绘图环境。
An object that stores color data and sometimes opacity.
Use renderers to turn a set of programmatic drawing commands into a bitmap or PDF image.
--使用渲染器返回一系列可编程的绘制命令转换成bitmap格式或PDF格式的图片
An abstract base class for creating graphics renderers.
class UIGraphicsRendererContext
The base class for the drawing environments associated with graphics renderers.
class UIGraphicsRendererFormat
A set of drawing attributes that represent the configuration of a graphics renderer context.
A graphics renderer for creating Core Graphics-backed images.
class UIGraphicsImageRendererContext
The drawing environment associated with an image renderer.
class UIGraphicsImageRendererFormat
A set of drawing attributes that represent the configuration of an image renderer context.
A graphics renderer for creating PDFs.
typealias UIGraphicsPDFRenderer.DrawingActions
A handler block that you use to draw PDF content.
class UIGraphicsPDFRendererContext
A drawing environment associated with a PDF renderer.
class UIGraphicsPDFRendererFormat
A set of drawing attributes that represents the configuration of a PDF renderer context.
A path that consists of straight and curved line segments that you can render in your custom views.
Fills the specified rectangle with the current color.
func UIRectFillUsingBlendMode(CGRect, CGBlendMode)
Fills a rectangle with the current fill color using the specified blend mode.
Draws a frame around the inside of the specified rectangle.
func UIRectFrameUsingBlendMode(CGRect, CGBlendMode)
Draws a frame around the inside of a rectangle using the specified blend mode.
An object that manages metrics used when drawing attributed strings.
Constants for the rendering options for a string when it is drawn.
Vertical adjustment options.
An encapsulation of the attributes used to create a drop shadow during drawing operations.
Manage the current graphics environment using Core Graphics framework types.
func UIGraphicsGetCurrentContext() -> CGContext?
Returns the current graphics context.
func UIGraphicsPushContext(CGContext)
Makes the specified graphics context the current context.
Removes the current graphics context from the top of the stack, restoring the previous context.
func UIGraphicsBeginImageContextWithOptions(CGSize, Bool, CGFloat)
Creates a bitmap-based graphics context with the specified options.
Modifies the current clipping path by intersecting it with the specified rectangle.
class func cgAffineTransform(for: String) -> CGAffineTransform
Returns a Core Graphics affine transform structure corresponding to the data in a given string.
class func cgPoint(for: String) -> CGPoint
Returns a Core Graphics point structure corresponding to the data in a given string.
class func cgRect(for: String) -> CGRect
Returns a Core Graphics rectangle structure corresponding to the data in a given string.
class func cgSize(for: String) -> CGSize
Returns a Core Graphics size structure corresponding to the data in a given string.
class func cgVector(for: String) -> CGVector
Returns a Core Graphics vector corresponding to the data in a given string.
class func string(for: CGAffineTransform) -> String
Returns a string formatted to contain the data from an affine transform.
class func string(for: CGPoint) -> String
Returns a string formatted to contain the data from a point.
class func string(for: CGRect) -> String
Returns a string formatted to contain the data from a rectangle.
class func string(for: CGSize) -> String
Returns a string formatted to contain the data from a size data structure.
class func string(for: CGVector) -> String
Returns a string formatted to contain the data from a vector data structure.
Create and manage images, including those that use bitmap and PDF formats.
Display the system print panels and manage the printing process.