Package com.l2fprod.util
Class ColorFillFilter
java.lang.Object
java.awt.image.ImageFilter
java.awt.image.RGBImageFilter
com.l2fprod.util.ColorFillFilter
- All Implemented Interfaces:
ImageConsumer
,Cloneable
- Version:
- $Revision: 1.1 $, $Date: 2004/07/18 11:19:44 $
- Author:
- $Author: l2fprod $
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Description of the Fieldint
Description of the Fieldint
Description of the FieldFields inherited from class java.awt.image.RGBImageFilter
canFilterIndexColorModel, newmodel, origmodel
Fields inherited from class java.awt.image.ImageFilter
consumer
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the ColorFillFilter objectColorFillFilter
(int r, int g, int b) Constructor for the ColorFillFilter objectColorFillFilter
(Color color) Constructor for the ColorFillFilter object -
Method Summary
Modifier and TypeMethodDescriptionvoid
filter
(BufferedImage src, BufferedImage dest) int
filterRGB
(int x, int y, int rgb) Description of the Methodvoid
setBlue
(int b) Sets the Blue attribute of the ColorFillFilter objectvoid
setColor
(int r, int g, int b) Sets the Color attribute of the ColorFillFilter objectvoid
setGreen
(int g) Sets the Green attribute of the ColorFillFilter objectvoid
setRed
(int r) Sets the Red attribute of the ColorFillFilter objectMethods inherited from class java.awt.image.RGBImageFilter
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties
-
Field Details
-
m_Red
public int m_RedDescription of the Field -
m_Green
public int m_GreenDescription of the Field -
m_Blue
public int m_BlueDescription of the Field
-
-
Constructor Details
-
ColorFillFilter
public ColorFillFilter(int r, int g, int b) Constructor for the ColorFillFilter object- Parameters:
r
- Description of Parameterg
- Description of Parameterb
- Description of Parameter
-
ColorFillFilter
Constructor for the ColorFillFilter object- Parameters:
color
- Description of Parameter
-
ColorFillFilter
public ColorFillFilter()Constructor for the ColorFillFilter object
-
-
Method Details
-
setColor
public void setColor(int r, int g, int b) Sets the Color attribute of the ColorFillFilter object- Parameters:
r
- The new Color valueg
- The new Color valueb
- The new Color value
-
setRed
public void setRed(int r) Sets the Red attribute of the ColorFillFilter object- Parameters:
r
- The new Red value
-
setGreen
public void setGreen(int g) Sets the Green attribute of the ColorFillFilter object- Parameters:
g
- The new Green value
-
setBlue
public void setBlue(int b) Sets the Blue attribute of the ColorFillFilter object- Parameters:
b
- The new Blue value
-
filterRGB
public int filterRGB(int x, int y, int rgb) Description of the Method- Specified by:
filterRGB
in classRGBImageFilter
- Parameters:
x
- Description of Parametery
- Description of Parameterrgb
- Description of Parameter- Returns:
- Description of the Returned Value
-
filter
-