ScaleMode Enum

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

Controls whether the image is allowed to upscale, downscale, both, or if only the canvas gets to be upscaled.

public enum ScaleMode

Fields

Both Upscales and downscales images according to 'width' and 'height'.
Canvas When the image is smaller than the requested size, padding is added instead of stretching the image
Down The default. Only downsamples images - never enlarges. If an image is smaller than 'width' and 'height', the image coordinates are used instead.