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

Chromaticity attribute always prints in color(specific to Solaris)

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      beta
    • CPU:
      sparc
    • OS:
      solaris_8
    • Verification:
      Verified

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: