Table of Contents

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

PointF?

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

bool

Mode

Gets or sets the resize mode.

public ResizeMode Mode { get; set; }

Property Value

ResizeMode

PadColor

Gets or sets the color to use as a background when padding an image.

public Color PadColor { get; set; }

Property Value

Color

Position

Gets or sets the anchor position.

public AnchorPositionMode Position { get; set; }

Property Value

AnchorPositionMode

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

bool

Sampler

Gets or sets the sampler to perform the resize operation.

public IResampler Sampler { get; set; }

Property Value

IResampler

Size

Gets or sets the target size.

public Size Size { get; set; }

Property Value

Size

TargetRectangle

Gets or sets the target rectangle to resize into.

public Rectangle? TargetRectangle { get; set; }

Property Value

Rectangle?