A filter that resizes and changes the aspect ratio of an image using Lanczos resampling.
- iOS 9.0+
- macOS 10.13+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Metal Performance Shaders
You can use this filter to enlarge or reduce the size of an image, or to change the aspect ratio of an image. The filter uses a Lanczos resampling algorithm, that typically produces better quality for photographs, but is slower than linear sampling that uses GPU texture units. Lanczos downsampling does not require a low pass filter to be applied before it is used. Because the resampling function has negative lobes, Lanczos can result in ringing artifacts near sharp edges, making it less suitable for vector art.
A transform matrix for explicit resampling control with a Lanczos kernel.
Image Manipulation Filters
A filter that performs a conversion of color space, alpha, or pixel format.
A filter that resizes and changes the aspect ratio of an image.
A filter that resizes and changes the aspect ratio of an image using Bilinear resampling.
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