Package com.jidesoft.icons
Class TintFilter
- java.lang.Object
-
- java.awt.image.ImageFilter
-
- java.awt.image.RGBImageFilter
-
- com.jidesoft.icons.TintFilter
-
- All Implemented Interfaces:
java.awt.image.ImageConsumer
,java.lang.Cloneable
public class TintFilter extends java.awt.image.RGBImageFilter
An image filter that tints the image with a color.
-
-
Constructor Summary
Constructors Constructor Description TintFilter(java.awt.Color color, int width, int height, java.awt.Insets insets)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.awt.Image
createTintedImage(java.awt.Image i, java.awt.Color color, java.awt.Insets insets)
Creates a tinted imageint
filterRGB(int x, int y, int rgb)
-
Methods inherited from class java.awt.image.RGBImageFilter
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
-
-
-
-
Method Detail
-
filterRGB
public int filterRGB(int x, int y, int rgb)
- Specified by:
filterRGB
in classjava.awt.image.RGBImageFilter
-
createTintedImage
public static java.awt.Image createTintedImage(java.awt.Image i, java.awt.Color color, java.awt.Insets insets)
Creates a tinted image- Parameters:
i
- the original imagecolor
- the color to be tintedinsets
- the insets. The border area with the insets will not be tinted.- Returns:
- a tinted image
-
-