---
title: "CGImageSourceGetStatus(_:)"
framework: imageio
role: symbol
role_heading: Function
path: "imageio/cgimagesourcegetstatus(_:)"
---

# CGImageSourceGetStatus(_:)

Return the status of an image source.

## Declaration

```swift
func CGImageSourceGetStatus(_ isrc: CGImageSource) -> CGImageSourceStatus
```

## Parameters

- `isrc`: The image source that contains the image data.

## Return Value

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

## Discussion

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

## See Also

### Getting the Image Status

- [CGImageSourceGetStatusAtIndex(_:_:)](imageio/cgimagesourcegetstatusatindex(_:_:).md)
- [CGImageSourceStatus](imageio/cgimagesourcestatus.md)
