Class CropScaleMode
Defines the modes for auto cropping and scaling.
Inheritance
System.Object
CropScaleMode
Namespace: PhotoSauce.MagicScaler
Assembly: PhotoSauce.MagicScaler.dll
Syntax
public sealed class CropScaleMode : Enum
Fields
Contain
Preserve the aspect ratio of the input image. Reduce one of the output dimensions if necessary to preserve the ratio.
Declaration
public const CropScaleMode Contain
Field Value
Type | Description |
---|---|
CropScaleMode |
Crop
Preserve the aspect ratio of the input image. Crop if necessary to fit the output dimensions.
Declaration
public const CropScaleMode Crop
Field Value
Type | Description |
---|---|
CropScaleMode |
Max
Preserve the aspect ratio of the input image. Reduce one or both of the output dimensions if necessary to preserve the ratio but never enlarge.
Declaration
public const CropScaleMode Max
Field Value
Type | Description |
---|---|
CropScaleMode |
Pad
Preserve the aspect ratio of the input image. Fill any undefined pixels with the MatteColor.
Declaration
public const CropScaleMode Pad
Field Value
Type | Description |
---|---|
CropScaleMode |
Stretch
Stretch the image on one axis if necessary to fill the output dimensions.
Declaration
public const CropScaleMode Stretch
Field Value
Type | Description |
---|---|
CropScaleMode |
value__
Declaration
public byte value__
Field Value
Type | Description |
---|---|
System.Byte |