Class GrayScaleColorConverter
java.lang.Object
org.apache.xmlgraphics.java2d.color.GrayScaleColorConverter
- All Implemented Interfaces:
ColorConverter
Converts to grayscale using the standard RED=30%, GREEN=59% and BLUE=11%
weights (see http://en.wikipedia.org/wiki/Grayscale)
-
Method Summary
Modifier and TypeMethodDescriptionThe color is converted to CMYK with just the K component.static GrayScaleColorConverter
Returns a singleton instance.
-
Method Details
-
getInstance
Returns a singleton instance.- Returns:
- singleton instance of GrayScaleColorConverter
-
convert
The color is converted to CMYK with just the K component.- Specified by:
convert
in interfaceColorConverter
- Parameters:
color
- to convert- Returns:
- converted color
-