Package org.gnome.gdkpixbuf
Enum Class InterpType
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<InterpType>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum InterpType
extends Enum<InterpType>
implements Enumeration
Interpolation modes for scaling functions.
The GDK_INTERP_NEAREST
mode is the fastest scaling method, but has
horrible quality when scaling down; GDK_INTERP_BILINEAR
is the best
choice if you aren't sure what to choose, it has a good speed/quality
balance.
**Note**: Cubic filtering is missing from the list; hyperbolic interpolation is just as fast and results in higher quality.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBest quality/speed balance; use this mode by default.This is the slowest and highest quality reconstruction function.Nearest neighbor sampling; this is the fastest and lowest quality mode.This is an accurate simulation of the PostScript image operator without any interpolation enabled. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the InterpType classint
getValue()
Get the numeric value of this enumstatic InterpType
of
(int value) Create a new InterpType for the provided valuestatic InterpType
Returns the enum constant of this class with the specified name.static InterpType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEAREST
Nearest neighbor sampling; this is the fastest and lowest quality mode. Quality is normally unacceptable when scaling down, but may be OK when scaling up. -
TILES
This is an accurate simulation of the PostScript image operator without any interpolation enabled. Each pixel is rendered as a tiny parallelogram of solid color, the edges of which are implemented with antialiasing. It resembles nearest neighbor for enlargement, and bilinear for reduction. -
BILINEAR
Best quality/speed balance; use this mode by default. Bilinear interpolation. For enlargement, it is equivalent to point-sampling the ideal bilinear-interpolated image. For reduction, it is equivalent to laying down small tiles and integrating over the coverage area. -
HYPER
This is the slowest and highest quality reconstruction function. It is derived from the hyperbolic filters in Wolberg's "Digital Image Warping", and is formally defined as the hyperbolic-filter sampling the ideal hyperbolic-filter interpolated image (the filter is designed to be idempotent for 1:1 pixel mapping). **Deprecated**: this interpolation filter is deprecated, as in reality it has a lower quality than theGDKINTERPBILINEAR
filter (Since: 2.38)
-
-
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
-
of
Create a new InterpType for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-