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
| Edit this page View SourceCenterCoordinates
Gets or sets the center coordinates.
Declaration
public PointF? CenterCoordinates { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
bool |
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 |
---|---|
bool |
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 |
---|---|
Rectangle? |