]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
fixes a line colouring problem
authorKeiron Liddle <keiron@apache.org>
Thu, 7 Jun 2001 10:08:42 +0000 (10:08 +0000)
committerKeiron Liddle <keiron@apache.org>
Thu, 7 Jun 2001 10:08:42 +0000 (10:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194278 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/svg/PDFGraphics2D.java

index be2e16c408a9273521c34fef46b3f3f0758e4053..558d80688898bc5efb04b03cc04e4e19ffad00c3 100644 (file)
@@ -140,7 +140,7 @@ public class PDFGraphics2D extends AbstractGraphics2D {
      */
     public boolean drawImage(Image img, int x, int y,
                              ImageObserver observer) {
-        System.err.println("drawImage:x, y");
+        //System.err.println("drawImage:x, y");
 
         final int width = img.getWidth(observer);
         final int height = img.getHeight(observer);
@@ -414,10 +414,7 @@ public class PDFGraphics2D extends AbstractGraphics2D {
                        writeClip(imclip);
         Color c = getColor();
         currentColour = new PDFColor(c.getRed(), c.getGreen(), c.getBlue());
-        currentStream.write(currentColour.getColorSpaceOut(true));
-        c = getBackground();
-        PDFColor col = new PDFColor(c.getRed(), c.getGreen(), c.getBlue());
-        currentStream.write(col.getColorSpaceOut(false));
+        currentStream.write(currentColour.getColorSpaceOut(false));
 
         PDFNumber pdfNumber = new PDFNumber();
 
@@ -869,7 +866,7 @@ public class PDFGraphics2D extends AbstractGraphics2D {
      * <code>Graphics2D</code>.
      */
     public GraphicsConfiguration getDeviceConfiguration() {
-        System.out.println("getDeviceConviguration");
+        //System.out.println("getDeviceConviguration");
         return GraphicsEnvironment.getLocalGraphicsEnvironment().
                getDefaultScreenDevice().getDefaultConfiguration();
     }