Individual Image Properties

Properties that apply to an individual image in an image source.

Overview

These properties can be returned by the function CGImageSourceCopyPropertiesAtIndex(_:_:_:).

Topics

Constants

let kCGImagePropertyDPIHeight: CFString

The resolution, in dots per inch, in the x dimension. If present, this key is a CFNumber value.

let kCGImagePropertyDPIWidth: CFString

The resolution, in dots per inch, in the y dimension. If present, this key is a CFNumber value.

let kCGImagePropertyPixelWidth: CFString

The number of pixels in the x dimension. If present, this key is a CFNumber value.

let kCGImagePropertyPixelHeight: CFString

The number of pixels in the y dimension. If present, this key is a CFNumber value.

let kCGImagePropertyDepth: CFString

The number of bits in each color sample of each pixel. If present, this key is a CFNumber value.

let kCGImagePropertyIsFloat: CFString

Whether or not the image contains floating-point pixel samples. The value of this key is kCFBooleanTrue if the image contains them.

let kCGImagePropertyIsIndexed: CFString

Whether or not the image contains indexed pixel samples (sometimes called paletted samples). The value of this key is kCFBooleanTrue if the image contains them.

let kCGImagePropertyHasAlpha: CFString

Whether or not the image has an alpha channel. The value of this key is kCFBooleanTrue if the image contains an alpha channel.

let kCGImagePropertyColorModel: CFString

The color model of the image such as, RGB, CMYK, Gray, or Lab. The value of this key is of type CFStringRef.

let kCGImagePropertyProfileName: CFString

The name of the optional ICC profile embedded in the image, if known. If present, the value of this key is of type CFStringRef.