Package com.jhlabs.image
Class ChromeFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.WholeImageFilter
-
- com.jhlabs.image.LightFilter
-
- com.jhlabs.image.ChromeFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class ChromeFilter extends LightFilter
A filter which simulates chrome.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jhlabs.image.LightFilter
LightFilter.AmbientLight, LightFilter.DistantLight, LightFilter.Light, LightFilter.Material, LightFilter.PointLight, LightFilter.SpotLight
-
-
Field Summary
-
Fields inherited from class com.jhlabs.image.LightFilter
AMBIENT, BUMPS_FROM_BEVEL, BUMPS_FROM_IMAGE, BUMPS_FROM_IMAGE_ALPHA, BUMPS_FROM_MAP, COLORS_CONSTANT, COLORS_FROM_IMAGE, DISTANT, POINT, r255, SPOT
-
Fields inherited from class com.jhlabs.image.WholeImageFilter
originalSpace, transformedSpace
-
-
Constructor Summary
Constructors Constructor Description ChromeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)floatgetAmount()Get the amount of chrome.floatgetExposure()Get the exppsure of the effect.voidsetAmount(float amount)Set the amount of effect.voidsetExposure(float exposure)Set the exppsure of the effect.java.lang.StringtoString()-
Methods inherited from class com.jhlabs.image.LightFilter
addLight, filterPixels, getBumpFunction, getBumpHeight, getBumpSoftness, getBumpSource, getColorSource, getDiffuseColor, getEnvironmentMap, getLights, getMaterial, getViewDistance, phongShade, removeLight, setBumpFunction, setBumpHeight, setBumpSoftness, setBumpSource, setColorSource, setDiffuseColor, setEnvironmentMap, setFromRGB, setMaterial, setViewDistance
-
Methods inherited from class com.jhlabs.image.WholeImageFilter
transformSpace
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
Method Detail
-
setAmount
public void setAmount(float amount)
Set the amount of effect.- Parameters:
amount- the amount- See Also:
getAmount()
-
getAmount
public float getAmount()
Get the amount of chrome.- Returns:
- the amount
- See Also:
setAmount(float)
-
setExposure
public void setExposure(float exposure)
Set the exppsure of the effect.- Parameters:
exposure- the exposure- See Also:
getExposure()
-
getExposure
public float getExposure()
Get the exppsure of the effect.- Returns:
- the exposure
- See Also:
setExposure(float)
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)- Specified by:
filterin interfacejava.awt.image.BufferedImageOp- Overrides:
filterin classWholeImageFilter
-
toString
public java.lang.String toString()
- Overrides:
toStringin classLightFilter
-
-