Function

CGImageDestinationCreateWithDataConsumer

Creates an image destination that writes to the specified data consumer.

Declaration

CGImageDestinationRef CGImageDestinationCreateWithDataConsumer(CGDataConsumerRef consumer, CFStringRef type, size_t count, CFDictionaryRef options);

Parameters

consumer

The data consumer to write to. For information on data consumers see CGDataConsumer and Quartz 2D Programming Guide.

type

The uniform type identifier (UTI) of the resulting image file. See Uniform Type Identifiers Overview for a list of system-declared and third-party UTIs.

count

The number of images (not including thumbnail images) that the image file will contain.

options

Reserved for future use. Pass NULL.

Return Value

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

See Also

Creating Image Destinations

CGImageDestinationCreateWithData

Creates an image destination that writes to a Core Foundation mutable data object.

CGImageDestinationCreateWithURL

Creates an image destination that writes to a location specified by a URL.