Initializes an image object with bitmap data.
- iOS 5.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
The bitmap data to use for the image. The data you supply must be premultiplied.
The number of bytes per row.
The size of the image data.
A pixel format constant. See Pixel Formats.
The color space that the image is defined in. It must be a Quartz 2D color space (
nil for images that don’t contain color data (such as elevation maps, normal vector maps, and sampled function tables).
The initialized image object.
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.