Overwrites the pixels of one or more planes of an ARGB8888 image buffer with the provided scalar value.
- iOS 5.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
An 8-bit pixel value.
A pointer to a vImage buffer structure that contains the source image whose data you want to overwrite.
A pointer to a vImage buffer data structure. You're responsible for filling out the
rowfields of this structure, and for allocating a data buffer of the appropriate size. On return, the data buffer this structure points to contains the destination image data. When you no longer need the data buffer, you must deallocate the memory.
An output value that selects the plane (or planes) from the ARGB8888 source buffer that you want replaced with the scalar value. The value
0x8selects the alpha channel,
0x4the red channel,
0x2the green channel, and
0x1the blue channel. You can add these values together to select multiple channels.
The options to use when performing the operation. If you plan to perform your own tiling or use multithreading, pass
Image Do Not Tile