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

Print result ugly with setColor(new Color(0,0,0,200))

XMLWordPrintable

    • 2d
    • beta
    • x86
    • windows_95, windows_nt

      The result of printing was ugly with drawString after
      setColor( new Color(0,0,0,200)).

      1. Configration
        1.1 OS : Windows95(OSR2), IE4.01
        1.2 JDK ver. : Kestrel build-P
        1.3 Printer
           (1) Fuji Xerox Laser Press 4150 PSII(Postscript printer)
               (Driver: win85/98 Postscript driver(Adobe PS Ver. 4.2.6))
           (2) Canon Laser shot LBP 730 (Page printer)
               (Driver: Canon Lips4 Win95/98 driver ver. 6.3)

      2. Reproduction

       Please use the attached file, PrintImage.jar
       
       1.1 Process
         
         1) Set your printer "Default printer"
         
         2) Execute "java -jar PrintImage.jar"
            -> Canvas will appear, and display "PrintSample!"
               
         3) In menu, Select "File" - "PrintTest1"
            -> Print Dialog will appear
            
         4) Click "OK"
            -> Printing Job will start
            
         5) In menu, Select "File" - "PrintTest2"
            -> Print setup Dialog will appear
            
         6) Click "OK"
            -> Print Dialog will appear
                 
         7) Click "OK"
            -> Printing Job will start
            
           
         As to the results of printing, "Printtest1" was ugly, and
         "Printtest2" was good.
          
      3. Source code
        Please see the attached files , PrintImage.java and PrintImageCanvas.java.

      Name: yyT116575 Date: 02/06/2001


      java version "1.3.0_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
      Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)

      In jdk 1.3 the workaround with set property
      sun.java2d.print.pipeline=pdl only works for colors without
      a alpha component. For colors with a alpha component the bug
      also occured, if the property sun.java2d.print.pipeline=pdl
      is set. Without setting the property the bug occurs on every
      printing using colours. If you print only in grey-scales there
      is no problem. I found no effect with the PaperFormat (I have a german WIN-NT System with DIN-A4 as default Page-Size).

      The bug occured on every Printer I have tested:
      HP LaserJet 4050 T PCL 6
      HP LaserHet 4000 Series PCL 6
      HP DesignJet455CA(E/A0)
      QMS magicolor 2 DeskLaser
      (Review ID: 116432)
      ======================================================================

            jgodinez Jennifer Godinez (Inactive)
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: