Function

CGImageSourceCreateWithData(_:_:)

Creates an image source that reads from a Core Foundation data object.

Declaration

func CGImageSourceCreateWithData(_ data: CFData, _ options: CFDictionary?) -> CGImageSource?

Parameters

data

The data object to read from. For more information on data objects, see CFData and Data Objects.

options

A dictionary that specifies additional creation options. See Image Source Option Dictionary Keys for the keys you can supply.

Return Value

An image source. You are responsible for releasing this object using CFRelease.

See Also

Creating an Image Source

func CGImageSourceCreateWithDataProvider(CGDataProvider, CFDictionary?) -> CGImageSource?

Creates an image source that reads data from the specified data provider.

func CGImageSourceCreateWithURL(CFURL, CFDictionary?) -> CGImageSource?

Creates an image source that reads from a location specified by a URL.