public enum ScalingMethod extends java.lang.Enum<ScalingMethod>
Enum Constant and Description |
---|
AUTO
The User Agent is free to choose either resampling, integer scaling, or
any other scaling method.
|
INTEGER_PIXELS
The User Agent should scale the image such that each pixel in the
original image is scaled to the nearest integer number of device-pixels
that yields an image less-than-or-equal-to the image size derived from
the content-height, content-width, and scaling properties.
|
RESAMPLE_ANY_METHOD
The User Agent should resample the supplied image to provide an image
that fills the size derived from the content-height, content-width, and
scaling properties.
|
Modifier and Type | Method and Description |
---|---|
static ScalingMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScalingMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScalingMethod AUTO
public static final ScalingMethod INTEGER_PIXELS
public static final ScalingMethod RESAMPLE_ANY_METHOD
public static ScalingMethod[] values()
for (ScalingMethod c : ScalingMethod.values()) System.out.println(c);
public static ScalingMethod valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullThis documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.