Contents

CGImageSourceGetCount(_:)

Returns the number of images (not including thumbnails) in the image source.

Declaration

func CGImageSourceGetCount(_ isrc: CGImageSource) -> Int

Parameters

  • isrc:

    The image source that contains the image data.

Return Value

The number of images. If the image source is a multilayered Photoshop (PSD) file, the function returns 1.

Discussion

This function does not extract the layers of a PSD file.

See Also

Getting Information From an Image Source