public enum AspectRatioHandling extends Enum<AspectRatioHandling>
ImageToNDArrayConfig and ImageResizeStep
See ImageToNDArrayConfig for more details| Enum Constant and Description |
|---|
CENTER_CROP |
PAD |
STRETCH |
| Modifier and Type | Method and Description |
|---|---|
static AspectRatioHandling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AspectRatioHandling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AspectRatioHandling CENTER_CROP
public static final AspectRatioHandling PAD
public static final AspectRatioHandling STRETCH
public static AspectRatioHandling[] values()
for (AspectRatioHandling c : AspectRatioHandling.values()) System.out.println(c);
public static AspectRatioHandling 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 © 2022. All rights reserved.