xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbowdi...@apache.org
Subject svn commit: r580067 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSImageUtils.java
Date Thu, 27 Sep 2007 15:40:22 GMT
Author: cbowditch
Date: Thu Sep 27 08:40:17 2007
New Revision: 580067

URL: http://svn.apache.org/viewvc?rev=580067&view=rev
Log:
Bugzilla #43184
JPEG Images with a Grayscale Colorspace are incorrectly handled by PSImageUtils
Submitted by Adrian Cumiskey <dev.at.cumiskey.com>

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSImageUtils.java

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSImageUtils.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSImageUtils.java?rev=580067&r1=580066&r2=580067&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSImageUtils.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSImageUtils.java Thu Sep
27 08:40:17 2007
@@ -98,7 +98,7 @@
 
     private static void writeImageCommand(Dimension imgDim, ColorSpace colorSpace, 
             PSGenerator gen, String dataSource) throws IOException {
-        boolean iscolor = colorSpace.getType() != ColorSpace.CS_GRAY;
+        boolean iscolor = colorSpace.getType() != ColorSpace.TYPE_GRAY;
         prepareColorspace(colorSpace, gen);
         gen.writeln("<< /ImageType 1");
         gen.writeln("  /Width " + imgDim.width);
@@ -242,7 +242,7 @@
                 throws IOException {
         if (colorSpace.getType() == ColorSpace.TYPE_CMYK) {
             gen.writeln("/DeviceCMYK setcolorspace");
-        } else if (colorSpace.getType() == ColorSpace.CS_GRAY) {
+        } else if (colorSpace.getType() == ColorSpace.TYPE_GRAY) {
             gen.writeln("/DeviceGray setcolorspace");
         } else {
             gen.writeln("/DeviceRGB setcolorspace");



---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message