Table of Contents

Class ResizeParameters

Namespace
Dynamicweb.Imaging.ImageHandling
Assembly
Dynamicweb.Core.dll

Represents the calculated values which are used for image resizing and cropping.

public class ResizeParameters
Inheritance
ResizeParameters
Inherited Members

Properties

CropDimension

Gets the crop dimension.

public CropDimension CropDimension { get; }

Property Value

CropDimension

CropMode

Gets the crop mode.

public CropMode CropMode { get; }

Property Value

CropMode

CropPointX

Gets the crop position on the x-axis.

public int CropPointX { get; }

Property Value

int

CropPointY

Gets the crop position on the y-axis.

public int CropPointY { get; }

Property Value

int

CropSize

Returns the difference between the height or width of the image resized keeping aspect compared to the box needed. That is how much we need to cut off in the height or width of the image.

public int CropSize { get; }

Property Value

int

Width or height based on CropDimension

FocalPointX

Gets or sets focal point on the x-axis

public int FocalPointX { get; }

Property Value

int

The x-axis focal point

Remarks

Setting negative x will result into x = 0.

FocalPointY

Gets or sets focal point on the y-axis

public int FocalPointY { get; }

Property Value

int

The y-axis focal point

Remarks

Setting negative y will result into x = 0.

Height

Gets or sets height

public int Height { get; }

Property Value

int

The height

Remarks

Setting negative height will result into height = 1

OriginalHeight

Gets or sets original height

public int OriginalHeight { get; }

Property Value

int

The height

Remarks

Setting negative height will result into height = 1

OriginalWidth

Gets or sets original width

public int OriginalWidth { get; }

Property Value

int

The width

Remarks

Setting negative width will result into width = 1

ResizedHeight

Gets or sets resized height

public int ResizedHeight { get; }

Property Value

int

The height

Remarks

Setting negative height will result into height = 1

ResizedWidth

Gets or sets resized width

public int ResizedWidth { get; }

Property Value

int

The width

Remarks

Setting negative width will result into width = 1

Width

Gets or sets width

public int Width { get; }

Property Value

int

The width

Remarks

Setting negative width will result into width = 1

To top