ColorConverter
public final class GrayScaleColorConverter extends Object implements ColorConverter
Modifier and Type | Method | Description |
---|---|---|
Color |
convert(Color color) |
The color is converted to CMYK with just the K component.
|
static GrayScaleColorConverter |
getInstance() |
Returns a singleton instance.
|
public static GrayScaleColorConverter getInstance()
public Color convert(Color color)
convert
in interface ColorConverter
color
- to convertCopyright © 2018 Apache Software Foundation. All rights reserved.