Package io.github.humbleui.skija
Enum EncodeJPEGDownsampleMode
- java.lang.Object
-
- java.lang.Enum<EncodeJPEGDownsampleMode>
-
- io.github.humbleui.skija.EncodeJPEGDownsampleMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EncodeJPEGDownsampleMode>
public enum EncodeJPEGDownsampleMode extends java.lang.Enum<EncodeJPEGDownsampleMode>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EncodeJPEGDownsampleModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EncodeJPEGDownsampleMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DS_420
public static final EncodeJPEGDownsampleMode DS_420
Reduction by a factor of two in both the horizontal and vertical directions.
-
DS_422
public static final EncodeJPEGDownsampleMode DS_422
Reduction by a factor of two in the horizontal direction.
-
DS_444
public static final EncodeJPEGDownsampleMode DS_444
No downsampling.
-
-
Method Detail
-
values
public static EncodeJPEGDownsampleMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EncodeJPEGDownsampleMode c : EncodeJPEGDownsampleMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EncodeJPEGDownsampleMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-