Enum ImageResizeMode
Specifies the available modes for resizing an image.
Namespace: FulcrumFS.Images
Assembly: FulcrumFS.Images.dll
Syntax
public enum ImageResizeMode
Fields
| Name | Description |
|---|---|
| CropDown | Crop (cover): Crop the source image to match the target aspect ratio and scale down as needed to fit within the target size. Does not upscale smaller images; output dimensions are less than or equal to the target size. |
| FitDown | Fit (contain): Preserve source image aspect ratio and scale down as needed to fit within the target width and height. Does not upscale smaller images; output dimensions are less than or equal to the target size. |
| PadDown | Pad (letterbox): Pad the source image to match the target aspect ratio and scale down as needed to fit within the target size. Unused area is filled using PadColor. Does not upscale smaller images; output dimensions are less than or equal to the target size. |