Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4417101

Chromaticity attribute always prints in color(specific to Solaris)

XMLWordPrintable

    • 2d
    • beta
    • sparc
    • solaris_8
    • Verified

      OS: Solaris

      Bug specific to Solaris:

       The sample code attached prints an image 'fish.gif' using the Chromaticity attribute. On Solaris, the image gets printed in color even if the Monochrome attribute is specified. It works fine on Windows. The color printer used was Lexmark Optra SC 1275.
      The Chromaticity attribute support is verified by using the isAttributeCategorySupported() method and its value is verified by the isAttributeValueSupported() method of PrintService class. The attribute is later passed on to the DocPrintJob.

      The testcase assumes Monochrome if no command line argument is passed. To specify color, 'color' should be passed in the command line.

      Source File: ChromaticityTest.java
      Resource File: fish.gif

            prr Philip Race
            kbalasubsunw Kannan Balasubramanian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: