|
From: <doc...@us...> - 2007-07-16 22:12:43
|
Revision: 107
http://openpcl.svn.sourceforge.net/openpcl/?rev=107&view=rev
Author: documentsystems
Date: 2007-07-16 14:39:24 -0700 (Mon, 16 Jul 2007)
Log Message:
-----------
Howard Hoagland. Made the call to setRenderingHints(g2D) be conditional.
Modified Paths:
--------------
openpcl/src/com/openpcl/viewer/printing/PosPrintBufferedImage.java
Modified: openpcl/src/com/openpcl/viewer/printing/PosPrintBufferedImage.java
===================================================================
--- openpcl/src/com/openpcl/viewer/printing/PosPrintBufferedImage.java 2007-07-16 21:38:20 UTC (rev 106)
+++ openpcl/src/com/openpcl/viewer/printing/PosPrintBufferedImage.java 2007-07-16 21:39:24 UTC (rev 107)
@@ -41,6 +41,7 @@
private static final String sCantAllocate = "Can't allocate memory for temporary image used for printing.";
private double mPrintScale = 72.0d / 300.0d; // making width and height using 72 / 300 scale
private double mShrinkLegalToLetterScale = mPrintScale * (11.0d / 14.0d); // shrink in both directions height 14" to 11"
+ private boolean mShouldSetRendingHints = false; // Printing looks the same on paper if rending hints are set or not
public PosPrintBufferedImage(PosView pPosView) {
super();
@@ -89,7 +90,7 @@
// Cast passed in Graphics to Graphics2D
Graphics2D g2D = (Graphics2D)pGraphics;
// Set rendering hints
- setRenderingHints(g2D);
+ if (mShouldSetRendingHints) { setRenderingHints(g2D); }
// Set background color white
g2D.setBackground(Color.WHITE);
// Make drawing text and rectangles and pixels be in black
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|