public enum ResizeType extends Enum<ResizeType>
Specifies the resize type.
| Enum Constant and Description |
|---|
AdaptiveResample
Resample using adaptive algorithm based on weighted and blended rational function and lanczos3 interpolation algorithms.
|
BilinearResample
Resample using bilinear interpolation.
|
CenterToCenter
Center of the new image will coincide with the center of the original image.
|
LanczosResample
Resample using lanczos algorithm with a=3.
|
LeftBottomToLeftBottom
Left bottom point of the new image will coincide with the left bottom point of the original image.
|
LeftTopToLeftTop
Left top point of the new image will coincide with the left top point of the original image.
|
NearestNeighbourResample
Resample using nearest neighbour algorithm.
|
None
The pixels are not preserved during resize operation.
|
RightBottomToRightBottom
Right bottom point of the new image will coincide with the right bottom point of the original image.
|
RightTopToRightTop
Right top point of the new image will coincide with the right top point of the original image.
|
| Modifier and Type | Method and Description |
|---|---|
static ResizeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResizeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResizeType None
The pixels are not preserved during resize operation.
public static final ResizeType LeftTopToLeftTop
Left top point of the new image will coincide with the left top point of the original image. Crop will occur if required.
public static final ResizeType RightTopToRightTop
Right top point of the new image will coincide with the right top point of the original image. Crop will occur if required.
public static final ResizeType RightBottomToRightBottom
Right bottom point of the new image will coincide with the right bottom point of the original image. Crop will occur if required.
public static final ResizeType LeftBottomToLeftBottom
Left bottom point of the new image will coincide with the left bottom point of the original image. Crop will occur if required.
public static final ResizeType CenterToCenter
Center of the new image will coincide with the center of the original image. Crop will occur if required.
public static final ResizeType LanczosResample
Resample using lanczos algorithm with a=3.
public static final ResizeType NearestNeighbourResample
Resample using nearest neighbour algorithm.
public static final ResizeType AdaptiveResample
Resample using adaptive algorithm based on weighted and blended rational function and lanczos3 interpolation algorithms.
public static final ResizeType BilinearResample
Resample using bilinear interpolation. Image pre-filtering is allowed to remove the noice before resample, when needed
public static ResizeType[] values()
for (ResizeType c : ResizeType.values()) System.out.println(c);
public static ResizeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.