commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1535248 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/wbmp/WbmpImageParser.java
Date Thu, 24 Oct 2013 00:49:26 GMT
Author: ggregory
Date: Thu Oct 24 00:49:26 2013
New Revision: 1535248

URL: http://svn.apache.org/r1535248
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/wbmp/WbmpImageParser.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/wbmp/WbmpImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/wbmp/WbmpImageParser.java?rev=1535248&r1=1535247&r2=1535248&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/wbmp/WbmpImageParser.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/wbmp/WbmpImageParser.java
Thu Oct 24 00:49:26 2013
@@ -20,6 +20,7 @@ import java.awt.image.BufferedImage;
 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.File;
 import java.io.IOException;
@@ -210,7 +211,7 @@ public class WbmpImageParser extends Ima
         final byte[] image = readBytes("Pixels", is,
                 rowLength * wbmpHeader.height, "Error reading image pixels");
         final DataBufferByte dataBuffer = new DataBufferByte(image, image.length);
-        final WritableRaster raster = WritableRaster.createPackedRaster(dataBuffer,
+        final WritableRaster raster = Raster.createPackedRaster(dataBuffer,
                 wbmpHeader.width, wbmpHeader.height, 1, null);
         final int[] palette = { 0x000000, 0xffffff };
         final IndexColorModel colorModel = new IndexColorModel(1, 2, palette, 0,



Mime
View raw message