---
title: "CGImageSourceCreateIncremental(_:)"
framework: imageio
role: symbol
role_heading: Function
path: "imageio/cgimagesourcecreateincremental(_:)"
---

# CGImageSourceCreateIncremental(_:)

Creates an empty image source that you can use to accumulate incremental image data.

## Declaration

```swift
func CGImageSourceCreateIncremental(_ options: CFDictionary?) -> CGImageSource
```

## Parameters

- `options`: A dictionary that specifies additional creation options. For a list of possible values, see doc://com.apple.imageio/documentation/ImageIO/CGImageSource#Specifying-the-Read-Options.

## Return Value

Return Value An empty image source object. You’re responsible for releasing this type using CFRelease.

## Discussion

Discussion This function creates an empty image source container, which you use to accumulate data downloaded in chunks from the network. To add new chunks of data to the image source, call the CGImageSourceUpdateDataProvider(_:_:_:) or CGImageSourceUpdateData(_:_:_:) functions.

## See Also

### Creating an Image Source

- [CGImageSourceCreateWithURL(_:_:)](imageio/cgimagesourcecreatewithurl(_:_:).md)
- [CGImageSourceCreateWithData(_:_:)](imageio/cgimagesourcecreatewithdata(_:_:).md)
- [CGImageSourceCreateWithDataProvider(_:_:)](imageio/cgimagesourcecreatewithdataprovider(_:_:).md)
