railo.runtime.img.filter
Class ChromeFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.WholeImageFilter
          extended by railo.runtime.img.filter.LightFilter
              extended by railo.runtime.img.filter.ChromeFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class ChromeFilter
extends LightFilter
implements DynFiltering

A filter which simulates chrome.


Nested Class Summary
 
Nested classes/interfaces inherited from class railo.runtime.img.filter.LightFilter
LightFilter.AmbientLight, LightFilter.DistantLight, LightFilter.Light, LightFilter.Material, LightFilter.PointLight, LightFilter.SpotLight
 
Field Summary
 
Fields inherited from class railo.runtime.img.filter.LightFilter
AMBIENT, BUMPS_FROM_BEVEL, BUMPS_FROM_IMAGE, BUMPS_FROM_IMAGE_ALPHA, BUMPS_FROM_MAP, COLORS_CONSTANT, COLORS_FROM_IMAGE, DISTANT, POINT, SPOT
 
Constructor Summary
ChromeFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, BufferedImage dst)
           
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 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 railo.runtime.img.filter.LightFilter
addLight, getBumpFunction, getBumpHeight, getBumpShape, getBumpSoftness, getBumpSource, getColorSource, getDiffuseColor, getEnvironmentMap, getLights, getMaterial, getViewDistance, removeLight, setBumpFunction, setBumpHeight, setBumpShape, setBumpSoftness, setBumpSource, setColorSource, setDiffuseColor, setEnvironmentMap, setMaterial, setViewDistance
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChromeFilter

public ChromeFilter()
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 BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Specified by:
filter in interface BufferedImageOp
Overrides:
filter in class WholeImageFilter

toString

public String toString()
Overrides:
toString in class LightFilter

filter

public BufferedImage filter(BufferedImage src,
                            Struct parameters)
                     throws PageException
Specified by:
filter in interface DynFiltering
Overrides:
filter in class LightFilter
Throws:
PageException


Copyright © 2012 Railo