< prev index next >

src/java.desktop/share/classes/sun/awt/image/ImageRepresentation.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -282,11 +282,11 @@
         int size = w*h;
 
         DataBufferInt dbi = new DataBufferInt(size);
         // Note that stealData() requires a markDirty() afterwards
         // since we modify the data in it.
-        int newpixels[] = SunWritableRaster.stealData(dbi, 0);
+        int[] newpixels = SunWritableRaster.stealData(dbi, 0);
         if (cmodel instanceof IndexColorModel &&
             biRaster instanceof ByteComponentRaster &&
             biRaster.getNumDataElements() == 1)
         {
             ByteComponentRaster bct = (ByteComponentRaster) biRaster;

@@ -310,11 +310,11 @@
         SunWritableRaster.markDirty(dbi);
 
         isSameCM = false;
         cmodel = ColorModel.getRGBdefault();
 
-        int bandMasks[] = {0x00ff0000,
+        int[] bandMasks = {0x00ff0000,
                            0x0000ff00,
                            0x000000ff,
                            0xff000000};
 
         biRaster = Raster.createPackedRaster(dbi,w,h,w,

@@ -342,11 +342,11 @@
                                  ByteComponentRaster bct, int chanOff);
     static boolean s_useNative = true;
 
     public void setPixels(int x, int y, int w, int h,
                           ColorModel model,
-                          byte pix[], int off, int scansize) {
+                          byte[] pix, int off, int scansize) {
         int lineOff=off;
         int poff;
         int[] newLUT=null;
 
         if (src != null) {

@@ -539,11 +539,11 @@
         }
     }
 
 
     public void setPixels(int x, int y, int w, int h, ColorModel model,
-                          int pix[], int off, int scansize)
+                          int[] pix, int off, int scansize)
     {
         int lineOff=off;
         int poff;
 
         if (src != null) {

@@ -660,11 +660,11 @@
             ColorModel opModel = new DirectColorModel(24,
                                                       0x00ff0000,
                                                       0x0000ff00,
                                                       0x000000ff);
 
-            int bandmasks[] = {0x00ff0000, 0x0000ff00, 0x000000ff};
+            int[] bandmasks = {0x00ff0000, 0x0000ff00, 0x000000ff};
             WritableRaster opRaster = Raster.createPackedRaster(db, w, h, w,
                                                                 bandmasks,
                                                                 null);
 
             try {
< prev index next >