Function

CGImageDestinationAddImageFromSource

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

Declaration

void CGImageDestinationAddImageFromSource(CGImageDestinationRef idst, CGImageSourceRef isrc, size_t index, CFDictionaryRef properties);

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

CGImageDestinationAddImage

Adds an image to an image destination.