FitMode Enum

Namespace:
Weavy.Core.Imaging
Assembly:
Weavy.Core.dll

How to resolve aspect ratio differences between the requested size and the original image's size.

public enum FitMode

Fields

Crop The image is resized to fill the destination dimensions, cropping is used if there is an aspect ratio difference.
Fit The image is resized to fit in the destination dimensions while it preserves its native aspect ratio.
Pad The image is resized to fill the destination dimensions, padding is used if there is an aspect ratio difference.
Stretch The image is resized to fill the destination dimensions., the image is stretched if there is an aspect ratio difference.