CGImageSourceCreateWithDataProvider(_:_:)
Creates an image source that reads data from the specified data provider.
Declaration
func CGImageSourceCreateWithDataProvider(_ provider: CGDataProvider, _ options: CFDictionary?) -> CGImageSource?Parameters
- provider:
The data provider to read from. For more information on data providers, see Cgdataprovider and TP30001066.
- 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.