Package com.dynamicpdf.api
Class Grayscale
java.lang.Object
com.dynamicpdf.api.Color
com.dynamicpdf.api.Grayscale
Represents a grayscale color.
-
Constructor Summary
ConstructorDescriptionGrayscale(float grayLevel)
Initializes a new instance of theGrayscale
class. -
Method Summary
-
Constructor Details
-
Grayscale
public Grayscale(float grayLevel)Initializes a new instance of theGrayscale
class.- Parameters:
grayLevel
- The gray level for the color.
-
-
Method Details
-
getBlack
Gets the color black.- Returns:
- The color black.
-
getWhite
Gets the color white.- Returns:
- The color white.
-
getColorString
Gets the color string.- Specified by:
getColorString
in classColor
- Returns:
- The color string.
-