Function

CGImageSourceCreateWithURL(_:_:)

Creates an image source that reads from a location specified by a URL.

Declaration

func CGImageSourceCreateWithURL(_ url: CFURL, _ options: CFDictionary?) -> CGImageSource?

Parameters

url

The URL to read from.

options

A dictionary that specifies additional creation options. See Image Source Option Dictionary Keys for the keys you can supply.

Return Value

An image source. You are responsible for releasing this object using CFRelease.

See Also

Creating an Image Source

func CGImageSourceCreateWithDataProvider(CGDataProvider, CFDictionary?) -> CGImageSource?

Creates an image source that reads data from the specified data provider.

func CGImageSourceCreateWithData(CFData, CFDictionary?) -> CGImageSource?

Creates an image source that reads from a Core Foundation data object.