- All Implemented Interfaces:
Serializable
,Comparable<STBIRFilter>
,Constable
The STB image resizer filter
- Since:
- 0.1.0
- Author:
- squid233
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA trapezoid w/1-pixel wide ramps, same result as box for integer scale ratiosAn interpolating cubic splineThe cubic b-spline (aka Mitchell-Netrevalli with B=1,C=0), gaussian-esqueuse same filter type that easy-to-use API choosesMitchell-Netrevalli filter with B=1/3, C=1/3On upsampling, produces same results as bilinear texture filtering -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Returns the enum value.static STBIRFilter
Returns the enum constant of this class with the specified name.static STBIRFilter[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
use same filter type that easy-to-use API chooses -
BOX
A trapezoid w/1-pixel wide ramps, same result as box for integer scale ratios -
TRIANGLE
On upsampling, produces same results as bilinear texture filtering -
CUBICBSPLINE
The cubic b-spline (aka Mitchell-Netrevalli with B=1,C=0), gaussian-esque -
CATMULLROM
An interpolating cubic spline -
MITCHELL
Mitchell-Netrevalli filter with B=1/3, C=1/3
-
-
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()Returns the enum value.- Returns:
- the enum value
-