Class Grayscale

java.lang.Object
com.dynamicpdf.api.Color
com.dynamicpdf.api.Grayscale

public class Grayscale extends Color
Represents a grayscale color.
  • Constructor Details

    • Grayscale

      public Grayscale(float grayLevel)
      Initializes a new instance of the Grayscale class.
      Parameters:
      grayLevel - The gray level for the color.
  • Method Details

    • getBlack

      public static Grayscale getBlack()
      Gets the color black.
      Returns:
      The color black.
    • getWhite

      public static Grayscale getWhite()
      Gets the color white.
      Returns:
      The color white.
    • getColorString

      public String getColorString()
      Gets the color string.
      Specified by:
      getColorString in class Color
      Returns:
      The color string.