Function

CGImageSourceCreateWithDataProvider

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

Declaration

CGImageSourceRef CGImageSourceCreateWithDataProvider(CGDataProviderRef provider, CFDictionaryRef options);

Parameters

provider

The data provider to read from. For more information on data providers, see CGDataProvider and Quartz 2D Programming Guide.

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

CGImageSourceCreateWithData

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

CGImageSourceCreateWithURL

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