ResizeType

Inheritance: java.lang.Object, com.aspose.ms.System.Enum

Specifies the resize type.

Enum Values

FieldDescription
NoneThe pixels are not preserved during resize operation.
LeftTopToLeftTopLeft top point of the new image will coincide with the left top point of the original image. Crop will occur if required.
RightTopToRightTopRight top point of the new image will coincide with the right top point of the original image. Crop will occur if required.
RightBottomToRightBottomRight bottom point of the new image will coincide with the right bottom point of the original image. Crop will occur if required.
LeftBottomToLeftBottomLeft bottom point of the new image will coincide with the left bottom point of the original image. Crop will occur if required.
CenterToCenterCenter of the new image will coincide with the center of the original image. Crop will occur if required.
LanczosResampleResample using lanczos algorithm with a=3.
NearestNeighbourResampleResample using nearest neighbour algorithm.
AdaptiveResampleResample using adaptive algorithm based on weighted and blended rational function and lanczos3 interpolation algorithms.
BilinearResampleResample using bilinear interpolation. Image pre-filtering is allowed to remove the noice before resample, when needed

None

public static final int None

The pixels are not preserved during resize operation.

Returns: int

LeftTopToLeftTop

public static final int LeftTopToLeftTop

Left top point of the new image will coincide with the left top point of the original image. Crop will occur if required.

Returns: int

RightTopToRightTop

public static final int RightTopToRightTop

Right top point of the new image will coincide with the right top point of the original image. Crop will occur if required.

Returns: int

RightBottomToRightBottom

public static final int RightBottomToRightBottom

Right bottom point of the new image will coincide with the right bottom point of the original image. Crop will occur if required.

Returns: int

LeftBottomToLeftBottom

public static final int LeftBottomToLeftBottom

Left bottom point of the new image will coincide with the left bottom point of the original image. Crop will occur if required.

Returns: int

CenterToCenter

public static final int CenterToCenter

Center of the new image will coincide with the center of the original image. Crop will occur if required.

Returns: int

LanczosResample

public static final int LanczosResample

Resample using lanczos algorithm with a=3.

Returns: int

NearestNeighbourResample

public static final int NearestNeighbourResample

Resample using nearest neighbour algorithm.

Returns: int

AdaptiveResample

public static final int AdaptiveResample

Resample using adaptive algorithm based on weighted and blended rational function and lanczos3 interpolation algorithms.

Returns: int

BilinearResample

public static final int BilinearResample

Resample using bilinear interpolation. Image pre-filtering is allowed to remove the noice before resample, when needed

Returns: int