Function

CGImageSourceCreateImageAtIndex(_:_:_:)

Creates a CGImage object for the image data associated with the specified index in an image source.

Declaration

func CGImageSourceCreateImageAtIndex(_ isrc: CGImageSource, _ index: Int, _ options: CFDictionary?) -> CGImage?

Parameters

isrc

An image source.

index

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

options

A dictionary that specifies additional creation options. See Image Source Option Dictionary Keys for the keys you can supply.

Return Value

Returns a CGImage object. You are responsible for releasing this object using CGImageRelease.

See Also

Creating Images From an Image Source

func CGImageSourceCreateThumbnailAtIndex(CGImageSource, Int, CFDictionary?) -> CGImage?

Creates a thumbnail image of the image located at a specified location in an image source.