Class ImageResizeOptions
Provides options for resizing images.
Implements
Namespace: FulcrumFS.Images
Assembly: FulcrumFS.Images.dll
Syntax
public sealed record ImageResizeOptions : IEquatable<ImageResizeOptions>
Constructors
| Name | Description |
|---|---|
| ImageResizeOptions(ImageResizeMode, int, int, bool) | Initializes a new instance of the ImageResizeOptions class with the specified dimensions and resize mode. |
Properties
| Name | Description |
|---|---|
| Height | Gets or initializes the target height in pixels. |
| MatchSourceOrientation | Gets or initializes a value indicating whether the target Width and Height should be swapped prior to resizing when needed so that the longest target dimension matches the longest source dimension (i.e. portrait targets are applied to portrait sources and landscape targets to landscape sources). |
| Mode | Gets or initializes the resize mode, which determines how the image is scaled to fit within the target width and height. |
| PadColor | Gets or initializes the padding color to use when Mode is set to a padding mode. If the value is null, padding operations will fall back to using BackgroundColor as the padding color. Default is null. |
| Width | Gets or initializes the target width in pixels. |