commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1535249 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xbm/XbmImageParser.java
Date Thu, 24 Oct 2013 00:50:12 GMT
Author: ggregory
Date: Thu Oct 24 00:50:11 2013
New Revision: 1535249

URL: http://svn.apache.org/r1535249
Log:
The static method createPackedRaster(DataBuffer, int, int, int, Point) from the type Raster
should be accessed directly.

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xbm/XbmImageParser.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xbm/XbmImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xbm/XbmImageParser.java?rev=1535249&r1=1535248&r2=1535249&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xbm/XbmImageParser.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/xbm/XbmImageParser.java
Thu Oct 24 00:50:11 2013
@@ -21,6 +21,7 @@ import java.awt.image.ColorModel;
 import java.awt.image.DataBuffer;
 import java.awt.image.DataBufferByte;
 import java.awt.image.IndexColorModel;
+import java.awt.image.Raster;
 import java.awt.image.WritableRaster;
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
@@ -287,7 +288,7 @@ public class XbmImageParser extends Imag
                 -1, DataBuffer.TYPE_BYTE);
         final DataBufferByte dataBuffer = new DataBufferByte(imageData,
                 imageData.length);
-        final WritableRaster raster = WritableRaster.createPackedRaster(dataBuffer,
+        final WritableRaster raster = Raster.createPackedRaster(dataBuffer,
                 xbmHeader.width, xbmHeader.height, 1, null);
         final BufferedImage image = new BufferedImage(colorModel, raster,
                 colorModel.isAlphaPremultiplied(), new Properties());



Mime
View raw message