xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maxber...@apache.org
Subject svn commit: r797431 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageRendered.java
Date Fri, 24 Jul 2009 12:44:51 GMT
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


Mime
View raw message