Supplies data to a
- iOS 9.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Core Image
A pointer to image data. Note that
datarefers to the first byte of the requested subimage, not the larger image buffer.
The number of bytes per row.
The x origin of the image data.
The y origin of the image data.
The width of the image data.
The height of the image data.
User supplied data, which is optional.
You can supply the image provider to these methods of the
imageto create a CIImage object from image data
With Image Provider: size:: format: color Space: options:
init(imageto initialize an existing CIImage with data
Provider: size: _: format: color Space: options:)
You initialize the given bitmap with the subregion specified by the arguments
height. The subregion uses the local coordinate space of the image, with the origin at the upper-left corner of the image. If you change the virtual memory mapping of the buffer specified by the
data argument (such as by using
vm to modify it), the behavior is undefined.
That this callback always requests the full image data regardless of what is actually visible. All of the image is loaded or none of it is. The exception is when you create a tiled image by specifying the
k option. In this case, only the needed tiles are requested.