AutoCropPaddingMode Enum

Selects what an auto-crop does when the padding around the content reaches outside the canvas.

public enum AutoCropPaddingMode

Fields

NameValueDescription
Expand0Enlarges the canvas: the area outside the original canvas is filled with the detected background color, while the padding inside the original canvas keeps the original pixels. This is the default.
Contain1Clamps the padded rectangle to the original canvas: the result is always a plain crop, and the padding may be smaller on some sides.