Contents

VNImageCropAndScaleOption.scaleFit

An option that scales the image to fit its longer side within the input dimensions, while preserving its aspect ratio, and center-crops the image.

Declaration

case scaleFit

Discussion

This option fills the remaining space with transparent pixels to maintain aspect ratio.

See Also

Crop and Scale Options