< prev index next >
src/java.desktop/share/classes/java/awt/image/MemoryImageSource.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
@@ -221,11 +221,11 @@
* @param scan the distance from one row of pixels to the next in
* the array
* @see java.awt.Component#createImage
* @see ColorModel#getRGBdefault
*/
- public MemoryImageSource(int w, int h, int pix[], int off, int scan) {
+ public MemoryImageSource(int w, int h, int[] pix, int off, int scan) {
initialize(w, h, ColorModel.getRGBdefault(),
(Object) pix, off, scan, null);
}
/**
@@ -241,11 +241,11 @@
* @param props a list of properties that the {@code ImageProducer}
* uses to process an image
* @see java.awt.Component#createImage
* @see ColorModel#getRGBdefault
*/
- public MemoryImageSource(int w, int h, int pix[], int off, int scan,
+ public MemoryImageSource(int w, int h, int[] pix, int off, int scan,
Hashtable<?,?> props)
{
initialize(w, h, ColorModel.getRGBdefault(),
(Object) pix, off, scan, props);
}
< prev index next >