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