Enum Class ScaleType

java.lang.Object
java.lang.Enum<ScaleType>
com.luna.common.img.ScaleType
All Implemented Interfaces:
Serializable, Comparable<ScaleType>, java.lang.constant.Constable

public enum ScaleType extends Enum<ScaleType>
图片缩略算法类型
Since:
4.5.8
Author:
looly
  • Enum Constant Details

    • DEFAULT

      public static final ScaleType DEFAULT
      默认
    • FAST

      public static final ScaleType FAST
      快速
    • SMOOTH

      public static final ScaleType SMOOTH
      平滑
    • REPLICATE

      public static final ScaleType REPLICATE
      使用 ReplicateScaleFilter 类中包含的图像缩放算法
    • AREA_AVERAGING

      public static final ScaleType AREA_AVERAGING
      Area Averaging算法
  • Method Details

    • values

      public static ScaleType[] 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

      public static ScaleType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()