Performs a vertical shear operation on a region of interest within an ARGB8888 source image.
- iOS 6.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A pointer to a vImage buffer structure that contains the source image whose data you want to shear.
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.
This parameter also specifies the size of the region of interest within the source image. The region of interest has the same height and width as the destination image buffer.
The horizontal offset, in pixels, from the upper-left pixel of the region of interest within the source image.
The vertical offset, in pixels, from the upper-left pixel of the region of interest within the source image.
A translation value for the vertical direction.
The slope of the top edge of the sheared image, measured in a clockwise direction.
The resampling filter to be used with this function. You create this object by calling
v(to use a default resampling filter supplied by vImage) or
Image New Resampling Filter(_: _:)
v(to use a custom resampling filter that you supply). When the resampling filter is created, you can also set a scale factor that will be used in the horizontal shear operation.
Image New Resampling Filter For Function Using Buffer
A background color. Pass a pixel value only if you also set the
Image Background Color Fill
The options to use when applying the shear.
If you want vImage to use a higher quality, but slower resampling filter, set the
Image High Quality Resampling
If you plan to perform your own tiling or use multithreading, set the
Image Do Not Tile
This function also translates and scales the image, both in the vertical direction. The function transforms as much of the source image as it needs in order to attempt to fill the destination buffer, which means it can transform pixels outside the region of interest.