commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1535233 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java
Date Thu, 24 Oct 2013 00:27:43 GMT
Author: ggregory
Date: Thu Oct 24 00:27:43 2013
New Revision: 1535233

URL: http://svn.apache.org/r1535233
Log:
- The static method createBandedRaster(DataBuffer, int, int, int, int[], int[], Point) from
the type Raster should be accessed directly.
- The static method createPackedRaster(DataBuffer, int, int, int, Point) from the type Raster
should be accessed directly.
- The static method createInterleavedRaster(DataBuffer, int, int, int, int, int[], Point)
from the type Raster should be accessed directly.
- The static method createInterleavedRaster(DataBuffer, int, int, 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/pcx/PcxImageParser.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java?rev=1535233&r1=1535232&r2=1535233&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java
Thu Oct 24 00:27:43 2013
@@ -25,6 +25,7 @@ import java.awt.image.ComponentColorMode
 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;
@@ -423,11 +424,11 @@ public class PcxImageParser extends Imag
             }
             WritableRaster raster;
             if (pcxHeader.bitsPerPixel == 8) {
-                raster = WritableRaster.createInterleavedRaster(dataBuffer,
+                raster = Raster.createInterleavedRaster(dataBuffer,
                         xSize, ySize, bytesPerImageRow, 1, new int[] { 0 },
                         null);
             } else {
-                raster = WritableRaster.createPackedRaster(dataBuffer, xSize,
+                raster = Raster.createPackedRaster(dataBuffer, xSize,
                         ySize, pcxHeader.bitsPerPixel, null);
             }
             final IndexColorModel colorModel = new IndexColorModel(
@@ -473,7 +474,7 @@ public class PcxImageParser extends Imag
             }
             final DataBufferByte dataBuffer = new DataBufferByte(image,
                     image[0].length);
-            final WritableRaster raster = WritableRaster.createBandedRaster(
+            final WritableRaster raster = Raster.createBandedRaster(
                     dataBuffer, xSize, ySize, xSize, new int[] { 0, 1, 2 },
                     new int[] { 0, 0, 0 }, null);
             final ColorModel colorModel = new ComponentColorModel(
@@ -499,7 +500,7 @@ public class PcxImageParser extends Imag
                 }
             }
             final DataBufferByte dataBuffer = new DataBufferByte(image, image.length);
-            final WritableRaster raster = WritableRaster.createInterleavedRaster(
+            final WritableRaster raster = Raster.createInterleavedRaster(
                     dataBuffer, xSize, ySize, rowLength, 3,
                     new int[] { 2, 1, 0 }, null);
             final ColorModel colorModel = new ComponentColorModel(



Mime
View raw message