public static enum TImage.Scale extends java.lang.Enum<TImage.Scale>
Enum Constant and Description |
---|
NONE
No scaling.
|
SCALE
Scale the image, preserving aspect ratio, to fill the text area
width/height (like letterbox).
|
STRETCH
Stretch/shrink the image in both directions to fully fill the text
area width/height.
|
Modifier and Type | Method and Description |
---|---|
static TImage.Scale |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TImage.Scale[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TImage.Scale NONE
public static final TImage.Scale STRETCH
public static final TImage.Scale SCALE
public static TImage.Scale[] values()
for (TImage.Scale c : TImage.Scale.values()) System.out.println(c);
public static TImage.Scale 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 nullCopyright © 2019 Kevin Lamonte. Licensed MIT.