Function

CGImageDestinationCreateWithURL

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

Declaration

CGImageDestinationRef CGImageDestinationCreateWithURL(CFURLRef url, CFStringRef type, size_t count, CFDictionaryRef options);

Parameters

url

The URL to write to. If the URL already exists, the data at this location is overwritten.

type

The UTI (uniform type identifier) 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.

CGImageDestinationCreateWithData

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