Class CmykColor

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

public class CmykColor extends Color
  • Constructor Details

    • CmykColor

      public CmykColor(float cyan, float magenta, float yellow, float black)
      Initializes a new instance of the CmykColor class.
      Parameters:
      cyan - The cyan intensity.
      magenta - The magenta intensity.
      yellow - The yellow intensity.
      black - The black intensity.

      Values must be between 0.0 and 1.0.

  • Method Details

    • getBlack

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

      public static CmykColor 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