railo.runtime.img.filter
Class UnsharpFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.ConvolveFilter
          extended by railo.runtime.img.filter.GaussianFilter
              extended by railo.runtime.img.filter.UnsharpFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class UnsharpFilter
extends GaussianFilter
implements DynFiltering

A filter which subtracts Gaussian blur from an image, sharpening it.


Field Summary
 
Fields inherited from class railo.runtime.img.filter.ConvolveFilter
CLAMP_EDGES, WRAP_EDGES, ZERO_EDGES
 
Constructor Summary
UnsharpFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, BufferedImage dst)
           
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 float getAmount()
          Get the amount of sharpening.
 int getThreshold()
          Get the threshold value.
 void setAmount(float amount)
          Set the amount of sharpening.
 void setThreshold(int threshold)
          Set the threshold value.
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.GaussianFilter
convolveAndTranspose, getRadius, makeKernel, setRadius
 
Methods inherited from class railo.runtime.img.filter.ConvolveFilter
convolve, convolve, convolveH, convolveHV, convolveV, createCompatibleDestImage, getBounds2D, getEdgeAction, getKernel, getPoint2D, getPremultiplyAlpha, getRenderingHints, getUseAlpha, setEdgeAction, setKernel, setPremultiplyAlpha, setUseAlpha
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsharpFilter

public UnsharpFilter()
Method Detail

setThreshold

public void setThreshold(int threshold)
Set the threshold value.

Parameters:
threshold - the threshold value
See Also:
getThreshold()

getThreshold

public int getThreshold()
Get the threshold value.

Returns:
the threshold value
See Also:
setThreshold(int)

setAmount

public void setAmount(float amount)
Set the amount of sharpening.

Parameters:
amount - the amount
See Also:
getAmount()

getAmount

public float getAmount()
Get the amount of sharpening.

Returns:
the amount
See Also:
setAmount(float)

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Specified by:
filter in interface BufferedImageOp
Overrides:
filter in class GaussianFilter

toString

public String toString()
Overrides:
toString in class GaussianFilter

filter

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


Copyright © 2012 Railo