public class GrayScaleFilter extends Filter
| Modifier and Type | Field and Description |
|---|---|
static double |
WT_B_VID |
static double |
WT_FLAT |
static double |
WT_G_VID |
static double |
WT_R_VID |
ableButton, clearButton, closeButton, deleteItem, enabledAction, enabledItem, frame, hasInspector, inspectorVisible, inspectorX, inspectorY, propertiesItem, stack, support, vidPanel| Constructor and Description |
|---|
GrayScaleFilter()
Constructs a GrayScaleFilter object.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
getFilteredImage(java.awt.image.BufferedImage sourceImage)
Applies the filter to a source image and returns the result.
|
javax.swing.JDialog |
getInspector()
Implements abstract Filter method.
|
static XML.ObjectLoader |
getLoader()
Returns an XML.ObjectLoader to save and load filter data.
|
void |
refresh()
Refreshes this filter's GUI
|
void |
setWeights(double r,
double g,
double b) |
addPropertyChangeListener, addPropertyChangeListener, clear, getMenu, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setEnabledpublic static final double WT_R_VID
public static final double WT_G_VID
public static final double WT_B_VID
public static final double WT_FLAT
public java.awt.image.BufferedImage getFilteredImage(java.awt.image.BufferedImage sourceImage)
getFilteredImage in class FiltersourceImage - the source imagepublic javax.swing.JDialog getInspector()
getInspector in class Filterpublic void setWeights(double r,
double g,
double b)
public static XML.ObjectLoader getLoader()