Package com.jhlabs.image
Class ShadeFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.WholeImageFilter
-
- com.jhlabs.image.ShadeFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class ShadeFilter extends WholeImageFilter
-
-
Field Summary
Fields Modifier and Type Field Description static intBUMPS_FROM_BEVELstatic intBUMPS_FROM_IMAGEstatic intBUMPS_FROM_IMAGE_ALPHAstatic intBUMPS_FROM_MAPstatic intCOLORS_CONSTANTstatic intCOLORS_FROM_IMAGEprotected static floatr255-
Fields inherited from class com.jhlabs.image.WholeImageFilter
originalSpace, transformedSpace
-
-
Constructor Summary
Constructors Constructor Description ShadeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int[]filterPixels(int width, int height, int[] inPixels, java.awt.Rectangle transformedSpace)Actually filter the pixels.Function2DgetBumpFunction()floatgetBumpHeight()floatgetBumpSoftness()intgetBumpSource()java.awt.image.BufferedImagegetEnvironmentMap()voidsetBumpFunction(Function2D bumpFunction)voidsetBumpHeight(float bumpHeight)voidsetBumpSoftness(float bumpSoftness)voidsetBumpSource(int bumpSource)voidsetEnvironmentMap(java.awt.image.BufferedImage environmentMap)protected voidsetFromRGB(Color4f c, int argb)java.lang.StringtoString()-
Methods inherited from class com.jhlabs.image.WholeImageFilter
filter, transformSpace
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
Field Detail
-
COLORS_FROM_IMAGE
public static final int COLORS_FROM_IMAGE
- See Also:
- Constant Field Values
-
COLORS_CONSTANT
public static final int COLORS_CONSTANT
- See Also:
- Constant Field Values
-
BUMPS_FROM_IMAGE
public static final int BUMPS_FROM_IMAGE
- See Also:
- Constant Field Values
-
BUMPS_FROM_IMAGE_ALPHA
public static final int BUMPS_FROM_IMAGE_ALPHA
- See Also:
- Constant Field Values
-
BUMPS_FROM_MAP
public static final int BUMPS_FROM_MAP
- See Also:
- Constant Field Values
-
BUMPS_FROM_BEVEL
public static final int BUMPS_FROM_BEVEL
- See Also:
- Constant Field Values
-
r255
protected static final float r255
- See Also:
- Constant Field Values
-
-
Method Detail
-
setBumpFunction
public void setBumpFunction(Function2D bumpFunction)
-
getBumpFunction
public Function2D getBumpFunction()
-
setBumpHeight
public void setBumpHeight(float bumpHeight)
-
getBumpHeight
public float getBumpHeight()
-
setBumpSoftness
public void setBumpSoftness(float bumpSoftness)
-
getBumpSoftness
public float getBumpSoftness()
-
setEnvironmentMap
public void setEnvironmentMap(java.awt.image.BufferedImage environmentMap)
-
getEnvironmentMap
public java.awt.image.BufferedImage getEnvironmentMap()
-
setBumpSource
public void setBumpSource(int bumpSource)
-
getBumpSource
public int getBumpSource()
-
setFromRGB
protected void setFromRGB(Color4f c, int argb)
-
filterPixels
protected int[] filterPixels(int width, int height, int[] inPixels, java.awt.Rectangle transformedSpace)Description copied from class:WholeImageFilterActually filter the pixels.- Specified by:
filterPixelsin classWholeImageFilter- Parameters:
width- the image widthheight- the image heightinPixels- the image pixelstransformedSpace- the output bounds- Returns:
- the output pixels
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-