public enum ScaleType extends Enum<ScaleType>
Represents possible modes for automatic scale of an image.
| Enum Constant and Description |
|---|
GrowToFit
Automatically increase image to fit on canvas.
|
None
Do not use automatic scaling.
|
ShrinkToFit
Automatically shrink image to fit on canvas.
|
| Modifier and Type | Method and Description |
|---|---|
static ScaleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScaleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScaleType ShrinkToFit
Automatically shrink image to fit on canvas.
public static final ScaleType GrowToFit
Automatically increase image to fit on canvas.
public static final ScaleType None
Do not use automatic scaling.
public static ScaleType[] values()
for (ScaleType c : ScaleType.values()) System.out.println(c);
public static ScaleType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.