Function

CGImageDestinationAddImageFromSource(_:_:_:_:)

Adds an image from an image source to an image destination.

Declaration

func CGImageDestinationAddImageFromSource(_ idst: CGImageDestination, _ isrc: CGImageSource, _ index: Int, _ properties: CFDictionary?)

Parameters

idst

An image destination.

isrc

An image source.

index

An index that specifies the location of the image in the image source. The index is zero-based.

properties

A dictionary that specifies properties to overwrite or add to the source image properties. If a key in properties has the value kCFNull, the corresponding property in the image destination is removed. The dictionary can contain any of the properties described in Destination Properties or the image properties described in CGImageProperties.

See Also

Adding Images

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software