Function

CGImageSourceCreateWithData

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

Declaration

CGImageSourceRef CGImageSourceCreateWithData(CFDataRef data, CFDictionaryRef options);

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

CGImageSourceCreateWithDataProvider

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

CGImageSourceCreateWithURL

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software