Enumeration Case

VNImageCropAndScaleOption.centerCrop

A scaling option that maintains aspect ratio to fit the short side, and crops the centered image on its long side.

Declaration

case centerCrop = 0

See Also

Crop and Scale Options

case scaleFit

An option that scales an image to fit the input image dimensions while maintaining aspect ratio.

case scaleFill

A scaling option that scales an image proportionally so that its shorter dimension fills the canvas, potentially cropping along the longer dimension.

Beta Software

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