ResamplingMethod

Resampling method.

Entries

Link copied to clipboard

Always geometrically rescale the image to fit the page if necessary. Fast.

Link copied to clipboard

Nearest-neighbor interpolation. Lowest quality. Produces blocky images, especially when upsampling.

Link copied to clipboard

Bi-linear interpolation. Better quality than nearest-neighbor, slower. Okay when the target size is not too different from the source size.

Link copied to clipboard

Bi-cubic interpolation. Better quality than bi-linear, slower. Produces high-quality results in a larger range than that of bi-linear.

Link copied to clipboard

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.

Link copied to clipboard

Accurate, produces moire-free results, but tends to produce blurrier images. When upsampling, it is similar to nearest-neighbor.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard
fun toJson(): String
Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.