Package com.luna.common.img
Enum Class ScaleType
- All Implemented Interfaces:
Serializable
,Comparable<ScaleType>
,java.lang.constant.Constable
图片缩略算法类型
- Since:
- 4.5.8
- Author:
- looly
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionArea Averaging算法默认快速使用 ReplicateScaleFilter 类中包含的图像缩放算法平滑 -
Method Summary
-
Enum Constant Details
-
DEFAULT
默认 -
FAST
快速 -
SMOOTH
平滑 -
REPLICATE
使用 ReplicateScaleFilter 类中包含的图像缩放算法 -
AREA_AVERAGING
Area Averaging算法
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
-