Class DownscaleQuality

java.lang.Object
com.openhtmltopdf.util.DownscaleQuality

public class DownscaleQuality
extends Object
Simple enumerated constants for downscaling (scaling to smaller image size)--since we have various options for what algorithm to use. Not general-purpose, applies only to methods used in ImageUtil. Types constants can be looked up using forString(String, DownscaleQuality) and the corresponding string for the quality
  • Field Details

  • Method Details

    • asString

      public String asString()
    • forString

      public static DownscaleQuality forString​(String type, DownscaleQuality dflt)
      Retrieves the DownscaleQuality instance for the corresponding string.
      Parameters:
      type - The string describing the quality, e.g. HIGH
      dflt - Default value to use if not found
      Returns:
      The constant quality instance for the type, or the default if not found.