You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2004/10/10 14:18:49 UTC

cvs commit: xml-fop/src/java/org/apache/fop/render/ps PSGraphics2D.java

jeremias    2004/10/10 05:18:49

  Modified:    src/java/org/apache/fop/render/ps PSGraphics2D.java
  Log:
  Set Batik rendering hints to improve output quality.
  
  Revision  Changes    Path
  1.12      +7 -0      xml-fop/src/java/org/apache/fop/render/ps/PSGraphics2D.java
  
  Index: PSGraphics2D.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/ps/PSGraphics2D.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- PSGraphics2D.java	12 May 2004 23:19:53 -0000	1.11
  +++ PSGraphics2D.java	10 Oct 2004 12:18:49 -0000	1.12
  @@ -53,6 +53,7 @@
   import java.io.IOException;
   
   //Batik
  +import org.apache.batik.ext.awt.RenderingHintsKeyExt;
   import org.apache.batik.ext.awt.g2d.AbstractGraphics2D;
   import org.apache.batik.ext.awt.g2d.GraphicContext;
   import org.apache.commons.logging.Log;
  @@ -147,6 +148,12 @@
        */
       public void setGraphicContext(GraphicContext c) {
           gc = c;
  +        setPrivateHints();
  +    }
  +
  +    private void setPrivateHints() {
  +        setRenderingHint(RenderingHintsKeyExt.KEY_AVOID_TILE_PAINTING, 
  +                RenderingHintsKeyExt.VALUE_AVOID_TILE_PAINTING_ON);
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org