public class ColourFilter
extends java.awt.image.RGBImageFilter
Modifier and Type | Field and Description |
---|---|
static int |
BLUE_MASK
The mask for selecting the blue bits.
|
static int |
GREEN_MASK
The mask for selecting the green bits.
|
static int |
RED_GREEN_BLUE_MASK
The mask for selecting the red, green, and blue bits.
|
static int |
RED_MASK
The mask for selecting the red bits.
|
Constructor and Description |
---|
ColourFilter(int mask)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull ColourFilter |
clone() |
int |
filterRGB(int x,
int y,
int rgb)
Converts a pixel by applying an or operation.
|
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
public static final int RED_MASK
public static final int GREEN_MASK
public static final int BLUE_MASK
public static final int RED_GREEN_BLUE_MASK
public ColourFilter(int mask)
mask
- Mask to applypublic int filterRGB(int x, int y, int rgb)
filterRGB
in class java.awt.image.RGBImageFilter
@NotNull public @NotNull ColourFilter clone()
clone
in class java.awt.image.ImageFilter