public enum InterpolationMode extends Enum<InterpolationMode>
Specifies the algorithm that is used when images are scaled or rotated.
Enum Constant and Description |
---|
Bicubic
Specifies bicubic interpolation.
|
Bilinear
Specifies bilinear interpolation.
|
Default
Specifies default mode.
|
High
Specifies high quality interpolation.
|
HighQualityBicubic
Specifies high-quality, bicubic interpolation.
|
HighQualityBilinear
Specifies high-quality, bilinear interpolation.
|
Low
Specifies low quality interpolation.
|
NearestNeighbor
Specifies nearest-neighbor interpolation.
|
Modifier and Type | Method and Description |
---|---|
static InterpolationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InterpolationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InterpolationMode Default
Specifies default mode.
public static final InterpolationMode Low
Specifies low quality interpolation.
public static final InterpolationMode High
Specifies high quality interpolation.
public static final InterpolationMode Bilinear
Specifies bilinear interpolation. No prefiltering is done. This mode is not suitable for shrinking an image below 50 percent of its original size.
public static final InterpolationMode Bicubic
Specifies bicubic interpolation. No prefiltering is done. This mode is not suitable for shrinking an image below 25 percent of its original size.
public static final InterpolationMode NearestNeighbor
Specifies nearest-neighbor interpolation.
public static final InterpolationMode HighQualityBilinear
Specifies high-quality, bilinear interpolation. Prefiltering is performed to ensure high-quality shrinking.
public static final InterpolationMode HighQualityBicubic
Specifies high-quality, bicubic interpolation. Prefiltering is performed to ensure high-quality shrinking. This mode produces the highest quality transformed images.
public static InterpolationMode[] values()
for (InterpolationMode c : InterpolationMode.values()) System.out.println(c);
public static InterpolationMode 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 © 2019 Aspose. All Rights Reserved.