Enum Class ImageUtils.ScalingStrategy

java.lang.Object
java.lang.Enum<ImageUtils.ScalingStrategy>
org.hippoecm.frontend.plugins.gallery.imageutil.ImageUtils.ScalingStrategy
All Implemented Interfaces:
Serializable, Comparable<ImageUtils.ScalingStrategy>, Constable
Enclosing class:
ImageUtils

public static enum ImageUtils.ScalingStrategy extends Enum<ImageUtils.ScalingStrategy>
The available strategies for scaling images.
  • Enum Constant Details

    • AUTO

      public static final ImageUtils.ScalingStrategy AUTO
      Automatically determine the best strategy to get the nicest looking image in the least amount of time.
    • SPEED

      public static final ImageUtils.ScalingStrategy SPEED
      Scale as fast as possible. For smaller images (800px in size) this can result in noticeable aliasing but it can be a few order of magnitudes faster than using the QUALITY method.
    • SPEED_AND_QUALITY

      public static final ImageUtils.ScalingStrategy SPEED_AND_QUALITY
      Scale faster than when using QUALITY but get better results than when using SPEED.
    • QUALITY

      public static final ImageUtils.ScalingStrategy QUALITY
      Create a nice scaled version of an image at the cost of more processing time. This strategy is most important for smaller pictures (800px or smaller) and less important for larger pictures, as the difference between this strategy and the SPEED strategy become less and less noticeable as the source-image size increases.
    • BEST_QUALITY

      public static final ImageUtils.ScalingStrategy BEST_QUALITY
      Do everything possible to make the scaled image exceptionally good, regardless of the processing time needed. Use this strategy when even @{link #QUALITY} results in bad-looking images.
  • Method Details

    • values

      public static ImageUtils.ScalingStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ImageUtils.ScalingStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null