Initializes an image object with the supplied image data, using the specified options.
- iOS 5.0+
- macOS 10.4+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
The image data. The data you supply must be premultiplied.
A dictionary specifying image options. (See Image Dictionary Keys.)
The initialized image object, or
nil if the object could not be initialized.
Initializing an Image
Initializes an image of infinite extent whose entire content is the specified color.
Initializes an image object with the specified UIKit image object.
Initializes an image object from the contents supplied by a CGLayer object.
Initializes an image object from the contents supplied by a CGLayer object, using the specified options.
A key for the image tiles size. The associated value is an
NSArray that contains
NSNumber objects for the dimensions of the image tiles requested from the image provider.
A key for data needed by the image provider. The associated value is an object that contains the needed data.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software