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