public static enum ImageOption.Format extends java.lang.Enum<ImageOption.Format>
Enum Constant and Description |
---|
jpg
Image should be a jpg, useful for
ImageOption.jpegQualityOf(int) , but might produce artifacts. |
png
Use lossless, but bigger image format: PNG.
|
png8
Use lossy, 256 coloured PNG image format.
|
webp
Use googles lossy and lossless format.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toUrlParameter() |
static ImageOption.Format |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageOption.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageOption.Format jpg
ImageOption.jpegQualityOf(int)
, but might produce artifacts.public static final ImageOption.Format png
public static final ImageOption.Format png8
public static final ImageOption.Format webp
public static ImageOption.Format[] values()
for (ImageOption.Format c : ImageOption.Format.values()) System.out.println(c);
public static ImageOption.Format 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 java.lang.String toUrlParameter()
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.