You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by ma...@apache.org on 2009/07/24 14:44:51 UTC

svn commit: r797431 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageRendered.java

Author: maxberger
Date: Fri Jul 24 12:44:50 2009
New Revision: 797431

URL: http://svn.apache.org/viewvc?rev=797431&view=rev
Log:
Extract colorspace from icc profile if given

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageRendered.java

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageRendered.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageRendered.java?rev=797431&r1=797430&r2=797431&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageRendered.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageRendered.java Fri Jul 24 12:44:50 2009
@@ -49,8 +49,8 @@
         super(info);
         this.red = red;
         this.transparentColor = transparentColor;
-        this.colorSpace = red.getColorModel().getColorSpace();
         if (iccProfile == null) {
+            this.colorSpace = red.getColorModel().getColorSpace();
             if (this.colorSpace instanceof ICC_ColorSpace) {
                 ICC_ColorSpace icccs = (ICC_ColorSpace)this.colorSpace;
                 this.iccProfile = icccs.getProfile();
@@ -59,6 +59,7 @@
             }            
         } else {
             this.iccProfile = iccProfile;
+            this.colorSpace = new ICC_ColorSpace(this.iccProfile);
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org