Enum ResamplingMethod

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Integer index
    • Constructor Summary

      Constructors 
      Constructor Description
    • 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()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

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