public static enum ImageOption.Resize extends java.lang.Enum<ImageOption.Resize>
Enum Constant and Description |
---|
crop
Crop a part of the original image to match the specified size.
|
fill
Crop the image to the specified dimensions, upscaling if source image is smaller.
|
pad
Adds padding so that the generated image has the specified dimensions.
|
scale
Scale the image regardless of the original aspect ratio.
|
thumb
Creates a thumbnail from the image based on a focus area, if
ImageOption.focusOn(Focus) . |
Modifier and Type | Method and Description |
---|---|
static ImageOption.Resize |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageOption.Resize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageOption.Resize pad
public static final ImageOption.Resize crop
public static final ImageOption.Resize fill
public static final ImageOption.Resize thumb
ImageOption.focusOn(Focus)
.public static final ImageOption.Resize scale
public static ImageOption.Resize[] values()
for (ImageOption.Resize c : ImageOption.Resize.values()) System.out.println(c);
public static ImageOption.Resize 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 Contentful, GmbH.. All Rights Reserved.