|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xhtmlrenderer.util.DownscaleQuality
public class DownscaleQuality
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 | |
|---|---|
static DownscaleQuality |
AREA
One step, fast, but should be better than low-quality. |
static DownscaleQuality |
FAST
Low quality, but very fast. |
static DownscaleQuality |
HIGH_QUALITY
Highest-quality downscaling; probably slowest as well. |
static DownscaleQuality |
LOW_QUALITY
Low-quality, but not worst quality |
| Method Summary | |
|---|---|
String |
asString()
|
static DownscaleQuality |
forString(String type,
DownscaleQuality dflt)
Retrieves the DownscaleQuality instance for the corresponding string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DownscaleQuality HIGH_QUALITY
public static final DownscaleQuality LOW_QUALITY
public static final DownscaleQuality FAST
public static final DownscaleQuality AREA
| Method Detail |
|---|
public String asString()
public static DownscaleQuality forString(String type,
DownscaleQuality dflt)
type - The string describing the quality, e.g. HIGHdflt - Default value to use if not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||