TransformOptions Class
Immutable options of the transformations of an image: ImageProcessingExtensions.Rotate, ImageProcessingExtensions.Skew and ImageProcessingExtensions.Transform.
public sealed class TransformOptionsConstructors
| Name | Description |
|---|---|
| TransformOptions() |
TransformOptions()
TransformOptions.cspublic TransformOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| BackgroundColor | Gets the color of the canvas where the transformed image does not reach. Defaults to transparent black. A pixel format without alpha needs an opaque color, unless no pixel of the result reads beyond the image. |
| CanvasMode | Gets how the size of the canvas is chosen. Defaults to TransformCanvasMode.Expand. |
| CanvasSize | Gets the size of the canvas of TransformCanvasMode.Explicit, which requires a size that is not empty. It is not used by the other modes. Defaults to Size.Empty. |
| Default | Gets the default options: bicubic filter, transparent background, expanded canvas, encoded samples. |
| Filter | Gets the resampling kernel. Defaults to ResamplingFilter.Bicubic. |
| WorkingSpace | Gets the numeric space used for filtering. Defaults to ResizeWorkingSpace.Encoded. |
BackgroundColor
TransformOptions.csCanvasMode
TransformOptions.csGets how the size of the canvas is chosen. Defaults to TransformCanvasMode.Expand.
public TransformCanvasMode CanvasMode { get; init; }CanvasSize
TransformOptions.csGets the size of the canvas of TransformCanvasMode.Explicit, which requires a size that is not empty. It is not used by the other modes. Defaults to Size.Empty.
public Size CanvasSize { get; init; }Property value
Default
TransformOptions.csGets the default options: bicubic filter, transparent background, expanded canvas, encoded samples.
public static TransformOptions Default { get; }Property value
Filter
TransformOptions.csGets the resampling kernel. Defaults to ResamplingFilter.Bicubic.
public ResamplingFilter Filter { get; init; }WorkingSpace
TransformOptions.csGets the numeric space used for filtering. Defaults to ResizeWorkingSpace.Encoded.
public ResizeWorkingSpace WorkingSpace { get; init; }