Function

CGImageDestinationCreateWithData

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

Declaration

CGImageDestinationRef CGImageDestinationCreateWithData(CFMutableDataRef data, CFStringRef type, size_t count, CFDictionaryRef options);

Parameters

data

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

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

CGImageDestinationCreateWithDataConsumer

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

CGImageDestinationCreateWithURL

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