Contents

CGImageSourceCreateImageAtIndex(_:_:_:)

Creates an image object from the data at the specified index in an image source.

Declaration

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

Parameters

  • isrc:

    The image source that contains the image data.

  • index:

    The zero-based index of the image you want. If the index is invalid, this method returns NULL.

  • options:

    A dictionary that specifies additional creation options. For a list of possible values, see Cgimagesource.

Return Value

The image at the specified index, or NULL if an error occurs. You’re responsible for releasing the returned object using CGImageRelease.

See Also

Extracting Images From an Image Source