Enum ResamplingMethod
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum ResamplingMethod extends Enum<ResamplingMethod>
Resampling method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classResamplingMethod.Companion
-
Enum Constant Summary
Enum Constants Enum Constant Description NONEAlways geometrically rescale the image to fit the page if necessary. Fast.
Otherwise, downscale the bitmap to match the
dpisetting via the selected method before adding it to the PDF if the calculated image DPI after stretching is greater thandpi. Slower.NEARESTNearest-neighbor interpolation. Lowest quality. Produces blocky images, especially when upsampling.
LINEARBi-linear interpolation. Better quality than nearest-neighbor, slower. Okay when the target size is not too different from the source size.
CUBICBi-cubic interpolation. Better quality than bi-linear, slower. Produces high-quality results in a larger range than that of bi-linear.
LANCZOS4Lanczos (Sinc) interpolation over 8x8 neighborhood. Produces very high quality results, but slower than bi-cubic. Retains sharp edges like those of text when downsampling.
AREAAccurate, 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 StringtoJson()final ResamplingMethodvalueOf(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. -
-
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.
-
-
-
-