xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r798051 - in /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl: ImageBuffered.java ImageRendered.java
Date Mon, 27 Jul 2009 07:21:21 GMT
Author: jeremias
Date: Mon Jul 27 07:21:21 2009
New Revision: 798051

URL: http://svn.apache.org/viewvc?rev=798051&view=rev
Log:
Restored backwards-compatibility.

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageBuffered.java
    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/ImageBuffered.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageBuffered.java?rev=798051&r1=798050&r2=798051&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageBuffered.java
(original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageBuffered.java
Mon Jul 27 07:21:21 2009
@@ -38,10 +38,21 @@
      * @param transparentColor the transparent color or null
      * @param iccProfile an ICC color profile or null if no profile is associated
      */
-    public ImageBuffered(ImageInfo info, BufferedImage buffered, Color transparentColor,
ICC_Profile iccProfile) {
+    public ImageBuffered(ImageInfo info, BufferedImage buffered, Color transparentColor,
+            ICC_Profile iccProfile) {
         super(info, buffered, transparentColor, iccProfile);
     }
 
+    /**
+     * Main constructor.
+     * @param info the image info object
+     * @param buffered the BufferedImage instance
+     * @param transparentColor the transparent color or null
+     */
+    public ImageBuffered(ImageInfo info, BufferedImage buffered, Color transparentColor)
{
+        super(info, buffered, transparentColor, null);
+    }
+
     /** {@inheritDoc} */
     public ImageFlavor getFlavor() {
         return ImageFlavor.BUFFERED_IMAGE;

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=798051&r1=798050&r2=798051&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
Mon Jul 27 07:21:21 2009
@@ -45,7 +45,8 @@
      * @param transparentColor the transparent color or null
      * @param iccProfile an ICC color profile or null if no profile is associated
      */
-    public ImageRendered(ImageInfo info, RenderedImage red, Color transparentColor, ICC_Profile
iccProfile) {
+    public ImageRendered(ImageInfo info, RenderedImage red, Color transparentColor,
+            ICC_Profile iccProfile) {
         super(info);
         this.red = red;
         this.transparentColor = transparentColor;
@@ -56,13 +57,23 @@
                 this.iccProfile = icccs.getProfile();
             } else {
                 this.iccProfile = null;
-            }            
+            }
         } else {
             this.iccProfile = iccProfile;
             this.colorSpace = new ICC_ColorSpace(this.iccProfile);
         }
     }
 
+    /**
+     * Main constructor.
+     * @param info the image info object
+     * @param red the RenderedImage instance
+     * @param transparentColor the transparent color or null
+     */
+    public ImageRendered(ImageInfo info, RenderedImage red, Color transparentColor) {
+        this(info, red, transparentColor, null);
+    }
+
     /** {@inheritDoc} */
     public ImageFlavor getFlavor() {
         return ImageFlavor.RENDERED_IMAGE;



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


Mime
View raw message