Bewerken

Delen via


VNImageCropAndScaleOption Enum

Definition

Enumerates how an image should be cropped and scaled during processing.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public enum VNImageCropAndScaleOption
type VNImageCropAndScaleOption = 
Inheritance
VNImageCropAndScaleOption
Attributes

Fields

Name Value Description
CenterCrop 0

If the image is not of the expected size, image processing should occur on the center portion.

ScaleFit 1

If the image is not of the expected size, the image is scaled to fill the longer dimension, adding transparency in the other dimension.

ScaleFill 2

If the image is not of the expected size, the image is scaled to fill both dimensions, changing the aspect ratio as necessary.

Applies to