Contents

CGImageSourceGetPrimaryImageIndex(_:)

Returns the index of the primary image for an High Efficiency Image File Format (HEIF) image.

Declaration

func CGImageSourceGetPrimaryImageIndex(_ isrc: CGImageSource) -> Int

Parameters

  • isrc:

    The image source that contains the image data.

Return Value

The index of the primary image, or 0 for image formats other than the HEIF format.

See Also

Extracting Images From an Image Source