public class ShadeFilter extends WholeImageFilter
Modifier and Type | Field and Description |
---|---|
static int |
BUMPS_FROM_BEVEL |
static int |
BUMPS_FROM_IMAGE |
static int |
BUMPS_FROM_IMAGE_ALPHA |
static int |
BUMPS_FROM_MAP |
static int |
COLORS_CONSTANT |
static int |
COLORS_FROM_IMAGE |
protected static float |
r255 |
originalSpace, transformedSpace
filterListener
Constructor and Description |
---|
ShadeFilter() |
Modifier and Type | Method and Description |
---|---|
protected int[] |
filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
|
Function2D |
getBumpFunction() |
float |
getBumpHeight() |
float |
getBumpSoftness() |
int |
getBumpSource() |
BufferedImage |
getEnvironmentMap() |
void |
setBumpFunction(Function2D bumpFunction) |
void |
setBumpHeight(float bumpHeight) |
void |
setBumpSoftness(float bumpSoftness) |
void |
setBumpSource(int bumpSource) |
void |
setEnvironmentMap(BufferedImage environmentMap) |
protected void |
setFromRGB(Color4f c,
int argb) |
String |
toString() |
filter, transformSpace
clone, createCompatibleDestImage, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getMetaData, getPoint2D, getRenderingHints, getRGB, setFilterListener, setRGB
public static final int COLORS_FROM_IMAGE
public static final int COLORS_CONSTANT
public static final int BUMPS_FROM_IMAGE
public static final int BUMPS_FROM_IMAGE_ALPHA
public static final int BUMPS_FROM_MAP
public static final int BUMPS_FROM_BEVEL
protected static final float r255
public void setBumpFunction(Function2D bumpFunction)
public Function2D getBumpFunction()
public void setBumpHeight(float bumpHeight)
public float getBumpHeight()
public void setBumpSoftness(float bumpSoftness)
public float getBumpSoftness()
public void setEnvironmentMap(BufferedImage environmentMap)
public BufferedImage getEnvironmentMap()
public void setBumpSource(int bumpSource)
public int getBumpSource()
protected void setFromRGB(Color4f c, int argb)
protected int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
WholeImageFilter
filterPixels
in class WholeImageFilter
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output boundsCopyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.