com.jhlabs.image

Class ChromeFilter

Implemented Interfaces:
BufferedImageOp, 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, SPOT, r255

Fields inherited from class com.jhlabs.image.WholeImageFilter

originalSpace, transformedSpace

Method Summary

BufferedImage
filter(BufferedImage src, BufferedImage dst)
float
getAmount()
Get the amount of chrome.
float
getExposure()
Get the exppsure of the effect.
void
setAmount(float amount)
Set the amount of effect.
void
setExposure(float exposure)
Set the exppsure of the effect.
String
toString()

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, toString

Methods inherited from class com.jhlabs.image.WholeImageFilter

filter, filterPixels, transformSpace

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Method Details

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Overrides:
filter in interface WholeImageFilter

getAmount

public float getAmount()
Get the amount of chrome.
Returns:
the amount

getExposure

public float getExposure()
Get the exppsure of the effect.
Returns:
the exposure

setAmount

public void setAmount(float amount)
Set the amount of effect.
Parameters:
amount - the amount

setExposure

public void setExposure(float exposure)
Set the exppsure of the effect.
Parameters:
exposure - the exposure

toString

public String toString()
Overrides:
toString in interface LightFilter