Contents

CGImageSourceCreateIncremental(_:)

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

Declaration

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

Parameters

  • options:

    A dictionary that specifies additional creation options. For a list of possible values, see Cgimagesource.

Return Value

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

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