mhframework
Class MHBlurFilter

java.lang.Object
  extended by mhframework.MHBlurFilter
All Implemented Interfaces:
MHImageFilter

public class MHBlurFilter
extends java.lang.Object
implements MHImageFilter

Creates an image filter for blurring an image.


Constructor Summary
MHBlurFilter()
           
 
Method Summary
 float[] getBlurValues()
          Returns the array of values currently being used to blur the image.
 java.awt.image.BufferedImage processImage(java.awt.image.BufferedImage image)
          Applies a blurring filter to an image.
 void setBlurValue(float value)
          Sets the value to determine the amount of blur.
 void setBlurValue(float numerator, float denominator)
          Sets the value to determine the amount of blur.
 void setBlurValues(float[] values)
          Sets the array of values to determine the amount of blur.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MHBlurFilter

public MHBlurFilter()
Method Detail

processImage

public java.awt.image.BufferedImage processImage(java.awt.image.BufferedImage image)
Applies a blurring filter to an image.

Specified by:
processImage in interface MHImageFilter
Parameters:
image - The original image to be filtered.
Returns:
The filtered image.

setBlurValues

public void setBlurValues(float[] values)
Sets the array of values to determine the amount of blur.


setBlurValue

public void setBlurValue(float value)
Sets the value to determine the amount of blur.


setBlurValue

public void setBlurValue(float numerator,
                         float denominator)
Sets the value to determine the amount of blur.


getBlurValues

public float[] getBlurValues()
Returns the array of values currently being used to blur the image.