Creates a direct-access data provider that uses a file to supply data.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
- Core Graphics
The full or relative pathname to use for the data provider. When you supply Core Graphics data via the provider, it reads the data from the specified file.
A new data provider or
NULL if the file could not be opened. You are responsible for releasing this object using
You use this function to create a direct-access data provider that supplies data from a file. When you supply Core Graphics with a direct-access data provider, Core Graphics obtains data from your program in a single block.