ResizeAnchor Enum

Selects the part of the image kept when ResizeMode.Cover crops the overflow, or where the image is placed on a larger canvas (ResizeMode.Pad, ResizeMode.BoxPad, ImageProcessingExtensions.ExtendCanvas).

public enum ResizeAnchor

Fields

NameValueDescription
Center0Keeps the center, or centers the image on the canvas. This is the default.
TopLeft1Keeps the top-left corner.
Top2Keeps the top edge, centered horizontally.
TopRight3Keeps the top-right corner.
Left4Keeps the left edge, centered vertically.
BottomLeft6Keeps the bottom-left corner.
Bottom7Keeps the bottom edge, centered horizontally.
BottomRight8Keeps the bottom-right corner.