|
From: <doc...@us...> - 2007-07-27 00:31:06
|
Revision: 131
http://openpcl.svn.sourceforge.net/openpcl/?rev=131&view=rev
Author: documentsystems
Date: 2007-07-26 17:31:03 -0700 (Thu, 26 Jul 2007)
Log Message:
-----------
Howard Hoagland. In PclRenderImage getGraphicsWithRenderHints(), changed KEY_DITHERING from disable to enable, changed KEY_INTERPOLATION from nearestNeighbor to Bicubic, changed KEY_STROKE_CONTROL from plain to normalize.
Modified Paths:
--------------
openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java
Modified: openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java
===================================================================
--- openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java 2007-07-26 20:48:42 UTC (rev 130)
+++ openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java 2007-07-27 00:31:03 UTC (rev 131)
@@ -653,7 +653,7 @@
// Pick text quality instead of speed
tGraphics2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
// Turn dithering off. Dithering approximates color values by drawing groups of pixels of similar colors
- tGraphics2D.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_DISABLE);
+ tGraphics2D.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);
// Alpha composites for Quality
tGraphics2D.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION,
RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
@@ -664,9 +664,9 @@
tGraphics2D.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
// Interpolating pixels when scaling or rotating images.
tGraphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
- RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
+ RenderingHints.VALUE_INTERPOLATION_BICUBIC);
// Combining strokes
- tGraphics2D.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);
+ tGraphics2D.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_NORMALIZE);
// Used for any clear region operations
tGraphics2D.setBackground(Color.WHITE);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|