< prev index next >
src/java.desktop/share/classes/java/awt/image/PixelGrabber.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1995, 2013, 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
@@ -427,11 +427,11 @@
return;
}
private void convertToRGB() {
int size = dstW * dstH;
- int newpixels[] = new int[size];
+ int[] newpixels = new int[size];
if (bytePixels != null) {
for (int i = 0; i < size; i++) {
newpixels[i] = imageModel.getRGB(bytePixels[i] & 0xff);
}
} else if (intPixels != null) {
@@ -468,11 +468,11 @@
* in the pixels array
* @see #getPixels
*/
public void setPixels(int srcX, int srcY, int srcW, int srcH,
ColorModel model,
- byte pixels[], int srcOff, int srcScan) {
+ byte[] pixels, int srcOff, int srcScan) {
if (srcY < dstY) {
int diff = dstY - srcY;
if (diff >= srcH) {
return;
}
@@ -555,11 +555,11 @@
* in the pixels array
* @see #getPixels
*/
public void setPixels(int srcX, int srcY, int srcW, int srcH,
ColorModel model,
- int pixels[], int srcOff, int srcScan) {
+ int[] pixels, int srcOff, int srcScan) {
if (srcY < dstY) {
int diff = dstY - srcY;
if (diff >= srcH) {
return;
}
< prev index next >