public static enum Constants.WatermarkFitMode extends java.lang.Enum<Constants.WatermarkFitMode>
| Enum Constant and Description |
|---|
FIT_MODE_COVER_POSITION
0: Use the `positionInLandscapeMode` and `positionInPortraitMode` values you
set in
WatermarkOptions.
|
FIT_MODE_USE_IMAGE_RATIO
1: Use the value you set in `WatermarkRatio`.
|
| Modifier and Type | Field and Description |
|---|---|
private int |
value |
| Modifier and Type | Method and Description |
|---|---|
static Constants.WatermarkFitMode |
fromInt(int value) |
int |
getValue() |
static Constants.WatermarkFitMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constants.WatermarkFitMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constants.WatermarkFitMode FIT_MODE_COVER_POSITION
public static final Constants.WatermarkFitMode FIT_MODE_USE_IMAGE_RATIO
public static Constants.WatermarkFitMode[] values()
for (Constants.WatermarkFitMode c : Constants.WatermarkFitMode.values()) System.out.println(c);
public static Constants.WatermarkFitMode 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 nullpublic int getValue()
public static Constants.WatermarkFitMode fromInt(int value)