Class ResizeOptions
- Namespace
- SixLabors.ImageSharp.Processing
- Assembly
- SixLabors.ImageSharp.dll
The resize options for resizing images against certain modes.
public class ResizeOptions
- Inheritance
-
ResizeOptions
- Inherited Members
Constructors
ResizeOptions()
public ResizeOptions()
Properties
CenterCoordinates
Gets or sets the center coordinates.
public PointF? CenterCoordinates { get; set; }
Property Value
Compand
Gets or sets a value indicating whether to compress or expand individual pixel colors the value on processing.
public bool Compand { get; set; }
Property Value
Mode
Gets or sets the resize mode.
public ResizeMode Mode { get; set; }
Property Value
PadColor
Gets or sets the color to use as a background when padding an image.
public Color PadColor { get; set; }
Property Value
Position
Gets or sets the anchor position.
public AnchorPositionMode Position { get; set; }
Property Value
PremultiplyAlpha
Gets or sets a value indicating whether to premultiply the alpha (if it exists) during the resize operation.
public bool PremultiplyAlpha { get; set; }
Property Value
Sampler
Gets or sets the sampler to perform the resize operation.
public IResampler Sampler { get; set; }
Property Value
Size
Gets or sets the target size.
public Size Size { get; set; }
Property Value
TargetRectangle
Gets or sets the target rectangle to resize into.
public Rectangle? TargetRectangle { get; set; }