Contents

CGImageDestinationCreateWithDataConsumer(_:_:_:_:)

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

Declaration

func CGImageDestinationCreateWithDataConsumer(_ consumer: CGDataConsumer, _ type: CFString, _ count: Int, _ options: CFDictionary?) -> CGImageDestination?

Parameters

  • consumer:

    A data consumer object to store the image data.

  • type:

    The uniform type identifier of the resulting image file. For a list of system-declared and third-party identifiers, see Uniformtypeidentifiers.

  • count:

    The number of images (not including thumbnail images) you want to include in the image file.

  • options:

    Future options. Specify NULL for this parameter.

Return Value

An image destination, or NULL if an error occurs. You are responsible for releasing this object using CFRelease.

See Also

Creating an Image Destination