Contents

preferredRange

The preferred color range of the image renderer context.

Declaration

var preferredRange: UIGraphicsImageRendererFormat.Range { get set }

Discussion

This property affects the pixel format of the image that the renderer produces.

Different pixel formats can store different color ranges. The system chooses the precise pixel format, but you can set this property to exclude certain formats that support larger or narrower color ranges than you need.

See Also

Configuring the renderer attributes