Class
UIGraphicsRendererFormat --基类
A set of drawing attributes that represent the configuration of a graphics renderer context.
--一组配置图形渲染器上下文的绘制特征属性。
Declaration
class UIGraphicsRendererFormat : NSObject
Overview --概览
Create a UIGraphicsRendererFormat
object, or one of its subclasses (UIGraphicsImageRendererFormat
and UIGraphicsPDFRendererFormat
), and use it to construct a graphics renderer by providing the format object as a parameter in a UIGraphicsRenderer
subclass intializer.
--创建一个UIGraphicsRendererFormat
对象或其子类之一(UIGraphicsImageRendererFormat
和UIGraphicsPDFRendererFormat
),并通过在UIGraphicsRenderer子类初始化器中以format对象作为构造器参数来构造图形渲染器。
The graphics renderer uses the format object you provided to configure any context objects (UIGraphicsRendererContext
) it creates as part of the rendering process.
--图形渲染器使用您提供的format对象来配置渲染过程的部分或者全部的上下文对象(UIGraphicsRendererContext)。
If you use a graphics renderer initializer that does not require a format argument, the renderer creates a format object using the default()
class method.
--如果你使用的图形渲染器不需要format对象,则渲染器将使用default()
类方法创建一个默认的format对象。
The renderer format object contains properties that represent the immutable aspects of the renderer's configuration. This means that repeated uses of a single graphics renderer object will always use the same format object.
--renderer format对象包含了渲染器配置中的那些不可变的属性。这意味着重复使用某个图形渲染器对象会是始终使用相同的格式对象。
Topics --专题
Creating a Default Format --创建默认的格式
class func `default`() -> Self
Returns a new format configured for the highest fidelity supported by the current device.
Getting the Bounds --获取范围
The bounds of the associated graphics context.
Type Methods --类方法
class func preferred() -> Self
Returns a new format best suited for the main screen’s current configuration.
Relationships --继承关系
Inherits From
Conforms To
See Also
Drawing Contexts
An abstract base class for creating graphics renderers.
class UIGraphicsRendererContext
The base class for the drawing environments associated with graphics renderers.
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.