---
title: "CGImageSourceGetStatusAtIndex(_:_:)"
framework: imageio
role: symbol
role_heading: Function
path: "imageio/cgimagesourcegetstatusatindex(_:_:)"
---

# CGImageSourceGetStatusAtIndex(_:_:)

Returns the current status of an image at the specified location in the image source.

## Declaration

```swift
func CGImageSourceGetStatusAtIndex(_ isrc: CGImageSource, _ index: Int) -> CGImageSourceStatus
```

## Parameters

- `isrc`: The image source that contains the image data.
- `index`: The zero-based index into the images of the image source. If the index is invalid, this method returns NULL.

## Return Value

Return Value Returns the current status of the image. See CGImageSourceStatus for a list of possible values.

## Discussion

Discussion Status information is particularly informative for incremental image sources, but you may also use it on image sources that contain non-incremental data.

## See Also

### Getting the Image Status

- [CGImageSourceGetStatus(_:)](imageio/cgimagesourcegetstatus(_:).md)
- [CGImageSourceStatus](imageio/cgimagesourcestatus.md)
