|
java-gnome version 4.0.19 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Constant
org.gnome.gdk.InterpType
public final class InterpType
Interpolation algorithms available in GDK. These are used to control the
choice of algorithm that will be applied when scaling an image with
Pixbuf's scale()
method. In
general use it is recommended that you use the BILINEAR
algorithm.
The details of the implementations of the interpolation techniques made available here are obviously highly technical, and so are adapted directly from the gdk-pixbuf library's documentation.
Field Summary | |
---|---|
static InterpType |
BILINEAR
Use the bilinear interpolation method. |
static InterpType |
HYPER
A hyperbolic filtering algorithm. |
static InterpType |
NEAREST
Interpolate by "nearest neighbour" sampling. |
static InterpType |
TILES
Each pixel is rendered as a tiny parallelogram of solid color, the edges of which are implemented with antialiasing. |
Method Summary |
---|
Methods inherited from class org.freedesktop.bindings.Constant |
---|
toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final InterpType BILINEAR
public static final InterpType HYPER
The filter is idempotent for 1:1 pixel mapping.
According to the GDK documentation, this algorithm is formally defined as the "hyperbolic-filter sampling the ideal hyperbolic-filter interpolated image". Good thing they let us know that.
public static final InterpType NEAREST
public static final InterpType TILES
NEAREST
if scaling up, and to BILINEAR
if scaling down.
This is supposedly an accurate simulation of the PostScript's image operator (without any interpolation enabled).
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |