Enum ResamplingMethod
-
- All Implemented Interfaces:
-
java.io.Serializable
,kotlin.Comparable
public enum ResamplingMethod extends Enum<ResamplingMethod>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
Always geometrically rescale the image to fit the page if necessary. Fast.
NEAREST
Nearest-neighbor interpolation. Lowest quality. Produces blocky images, especially when upsampling.
LINEAR
Bi-linear interpolation. Better quality than nearest-neighbor, slower. Okay when the target size is not too different from the source size.
CUBIC
Bi-cubic interpolation. Better quality than bi-linear, slower. Produces high-quality results in a larger range than that of bi-linear.
LANCZOS4
Lanczos (Sinc) interpolation over 8x8 neighborhood. Produces very high quality results, but slower than bi-cubic. Retains sharp edges like those of text when downsampling.
AREA
Accurate, produces moire-free results, but tends to produce blurrier images. When upsampling, it is similar to nearest-neighbor.
-
Method Summary
Modifier and Type Method Description final ResamplingMethod
valueOf(String value)
Returns the enum constant of this type with the specified name. final Array<ResamplingMethod>
values()
Returns an array containing the constants of this enum type, in the order they're declared. final Integer
getIndex()
-
-
Method Detail
-
valueOf
final ResamplingMethod valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<ResamplingMethod> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
-
-
-