static class BufferedImageDrawHelper.TransparencyFilter
extends java.awt.image.RGBImageFilter
Modifier and Type | Field and Description |
---|---|
(package private) int |
rgbCheck
Pixel to use as transparent marker.
|
private static int |
TRANSPARENCY_MASK
Alpha channel constant.
|
Constructor and Description |
---|
TransparencyFilter(int pixTrans)
Creates new filter with the given transparent pixel value.
|
Modifier and Type | Method and Description |
---|---|
int |
filterRGB(int x,
int y,
int pixel)
This is on the fly converter to turn on transparency for every pixels the sames as
one we defined as marker on the filter construction.
|
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
private static final int TRANSPARENCY_MASK
int rgbCheck
TransparencyFilter(int pixTrans)
pixTrans
- The pixel sample we will consider as transparent.public int filterRGB(int x, int y, int pixel)
filterRGB
in class java.awt.image.RGBImageFilter
x
- The X pixel coordinate.y
- The Y pixel coordinate.pixel
- The ARGB pixel value of the original image.