Package com.openhtmltopdf.util
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 Summary
Fields Modifier and Type Field Description static DownscaleQualityAREAOne step, fast, but should be better than low-quality.static DownscaleQualityFASTLow quality, but very fast.static DownscaleQualityHIGH_QUALITYHighest-quality downscaling; probably slowest as well.static DownscaleQualityLOW_QUALITYLow-quality, but not worst quality -
Method Summary
Modifier and Type Method Description StringasString()static DownscaleQualityforString(String type, DownscaleQuality dflt)Retrieves the DownscaleQuality instance for the corresponding string.
-
Field Details
-
HIGH_QUALITY
Highest-quality downscaling; probably slowest as well. -
LOW_QUALITY
Low-quality, but not worst quality -
FAST
Low quality, but very fast. -
AREA
One step, fast, but should be better than low-quality.
-
-
Method Details