public class ImageFunction2D extends java.lang.Object implements Function2D
| Modifier and Type | Field and Description |
|---|---|
static int |
CLAMP |
protected int |
edgeAction |
protected int |
height |
protected int[] |
pixels |
protected int |
width |
static int |
WRAP |
static int |
ZERO |
| Constructor and Description |
|---|
ImageFunction2D(java.awt.Image image) |
ImageFunction2D(java.awt.Image image,
int edgeAction) |
ImageFunction2D(int[] pixels,
int width,
int height,
int edgeAction) |
| Modifier and Type | Method and Description |
|---|---|
float |
evaluate(float x,
float y) |
int |
getEdgeAction() |
int |
getHeight() |
int |
getWidth() |
void |
init(int[] pixels,
int width,
int height,
int edgeAction) |
void |
setEdgeAction(int edgeAction) |
public static final int ZERO
public static final int CLAMP
public static final int WRAP
protected int[] pixels
protected int width
protected int height
protected int edgeAction
public ImageFunction2D(java.awt.Image image)
public ImageFunction2D(java.awt.Image image,
int edgeAction)
public ImageFunction2D(int[] pixels,
int width,
int height,
int edgeAction)
public void init(int[] pixels,
int width,
int height,
int edgeAction)
public float evaluate(float x,
float y)
evaluate in interface Function2Dpublic void setEdgeAction(int edgeAction)
public int getEdgeAction()
public int getWidth()
public int getHeight()