leon.view.filters
Class LyReplaceColorImageFilter
java.lang.Object
leon.view.filters.LyImageFilter
leon.view.filters.LyReplaceColorImageFilter
public class LyReplaceColorImageFilter
- extends LyImageFilter
This class is used to replace a color by another one in an image.
Method Summary |
static java.awt.Image |
getFilteredImage(java.awt.Image image,
java.awt.Color colorSource,
java.awt.Color colorDest)
Gets the filtered image associated to the given image and background color. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
__VERSION
public static final java.lang.String __VERSION
- See Also:
- Constant Field Values
REPLACE_COLOR_FILTER_NAME
public static java.lang.String REPLACE_COLOR_FILTER_NAME
- Name of the filter used for keys in table of images.
LyReplaceColorImageFilter
public LyReplaceColorImageFilter()
- Constructor with no parameter. Calls the super implementation.
getFilteredImage
public static java.awt.Image getFilteredImage(java.awt.Image image,
java.awt.Color colorSource,
java.awt.Color colorDest)
- Gets the filtered image associated to the given image and background color. It it is not
found, creates it.
- Parameters:
image
- The image that must be filtered.colorSource
- The color that must be replaced. A null parameter means that transparency
must be replaced.colorDest
- The color that must be used to replace the source color. A null parameter
means that the source color must be replaced by transparency.
- Returns:
- The filtered image.
Website: W4 S.A., contact us: support@w4global.com