0417--iOS之UIGraphicsRendererFormat类

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对象或其子类之一(UIGraphicsImageRendererFormatUIGraphicsPDFRendererFormat),并通过在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                  --获取范围

var bounds: CGRect

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

NSObject

Conforms To

  • CVarArg

  • Equatable

  • Hashable

  • NSCopying

See Also

Drawing Contexts

class UIGraphicsRenderer

An abstract base class for creating graphics renderers.

class UIGraphicsRendererContext

The base class for the drawing environments associated with graphics renderers.

class UIGraphicsImageRenderer

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.

class UIGraphicsPDFRenderer

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.

你可能感兴趣的:(Drawing,图形绘制相关,IOS,API阅读)