Package overrungl.stb

Enum Class STBIRFilter

java.lang.Object
java.lang.Enum<STBIRFilter>
overrungl.stb.STBIRFilter
All Implemented Interfaces:
Serializable, Comparable<STBIRFilter>, Constable

public enum STBIRFilter extends Enum<STBIRFilter>
The STB image resizer filter
Since:
0.1.0
Author:
squid233
  • Enum Constant Details

    • DEFAULT

      public static final STBIRFilter DEFAULT
      use same filter type that easy-to-use API chooses
    • BOX

      public static final STBIRFilter BOX
      A trapezoid w/1-pixel wide ramps, same result as box for integer scale ratios
    • TRIANGLE

      public static final STBIRFilter TRIANGLE
      On upsampling, produces same results as bilinear texture filtering
    • CUBICBSPLINE

      public static final STBIRFilter CUBICBSPLINE
      The cubic b-spline (aka Mitchell-Netrevalli with B=1,C=0), gaussian-esque
    • CATMULLROM

      public static final STBIRFilter CATMULLROM
      An interpolating cubic spline
    • MITCHELL

      public static final STBIRFilter MITCHELL
      Mitchell-Netrevalli filter with B=1/3, C=1/3
  • Method Details

    • values

      public static STBIRFilter[] 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 STBIRFilter 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()
      Returns the enum value.
      Returns:
      the enum value