CGImageSourceCreateWithData(_:_:)
Creates an image source that reads from a Core Foundation data object.
Declaration
func CGImageSourceCreateWithData(_ data: CFData, _ options: CFDictionary?) -> CGImageSource?Parameters
- data:
The data object from which to read. For more information on data objects, see Cfdata and 20000171.
- options:
A dictionary that specifies additional creation options. For a list of possible values, see Cgimagesource.
Return Value
An image source. You’re responsible for releasing this type using CFRelease.