cdox.util.image
Interface ImageCorrector

All Known Implementing Classes:
Blur, Brightness, Contrast, CorrectorSlider, GammaCorrection, Sharpen

public interface ImageCorrector

This interface represents the corrections on an Image. Classes who implent this interface for example gamma, should do their actions in the filter-method.

Version:
May 22nd 2002
Author:
Rutger Bezema, Andreas Schmitz

Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage source, java.awt.image.BufferedImage dest)
          Does a transformation on the source-bufferedImage and returns the destination BufferedImage.
 int getValue()
          Returns the current slider-value.
 

Method Detail

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage source,
                                           java.awt.image.BufferedImage dest)
Does a transformation on the source-bufferedImage and returns the destination BufferedImage. The Destination image may be null, if so a new bufferedImage is created.

Parameters:
source - a BufferedImage value indicating the source image.
dest - a BufferedImage value indicating the destination image.
Returns:
the destination image.

getValue

public int getValue()
Returns the current slider-value.

Returns:
the current slider-value.