BufferedImageOp, Cloneablepublic class ShadeFilter extends WholeImageFilter
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
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| 构造器 | 说明 |
|---|---|
ShadeFilter() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBfilter, transformSpacepublic 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)
WholeImageFilterfilterPixels 在类中 WholeImageFilterwidth - the image widthheight - the image heightinPixels - the image pixelstransformedSpace - the output boundsCopyright © 2019. All rights reserved.