public class ImageFunction2D extends Object implements Function2D
Modifier and Type | Field and Description |
---|---|
protected boolean |
alpha |
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(BufferedImage image) |
ImageFunction2D(BufferedImage image,
boolean alpha) |
ImageFunction2D(BufferedImage image,
int edgeAction,
boolean alpha) |
ImageFunction2D(Image image) |
ImageFunction2D(Image image,
int edgeAction,
boolean alpha) |
ImageFunction2D(int[] pixels,
int width,
int height,
int edgeAction,
boolean alpha) |
Modifier and Type | Method and Description |
---|---|
float |
evaluate(float x,
float y) |
int |
getEdgeAction() |
int |
getHeight() |
int[] |
getPixels() |
int[] |
getRGB(BufferedImage image,
int x,
int y,
int width,
int height,
int[] pixels)
A convenience method for getting ARGB pixels from an image.
|
int |
getWidth() |
void |
init(int[] pixels,
int width,
int height,
int edgeAction,
boolean alpha) |
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
protected boolean alpha
public ImageFunction2D(BufferedImage image)
public ImageFunction2D(BufferedImage image, boolean alpha)
public ImageFunction2D(BufferedImage image, int edgeAction, boolean alpha)
public ImageFunction2D(int[] pixels, int width, int height, int edgeAction, boolean alpha)
public ImageFunction2D(Image image)
public ImageFunction2D(Image image, int edgeAction, boolean alpha)
public int[] getRGB(BufferedImage image, int x, int y, int width, int height, int[] pixels)
public void init(int[] pixels, int width, int height, int edgeAction, boolean alpha)
public float evaluate(float x, float y)
evaluate
in interface Function2D
public void setEdgeAction(int edgeAction)
public int getEdgeAction()
public int getWidth()
public int getHeight()
public int[] getPixels()
Copyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.