2362N/A * Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * The <code>BufferedImageFilter</code> class subclasses an 0N/A * <code>ImageFilter</code> to provide a simple means of 0N/A * ({@link BufferedImageOp}) to filter a <code>BufferedImage</code> 0N/A * paradigm. Examples of these image operators are: {@link ConvolveOp}, 0N/A * {@link AffineTransformOp} and {@link LookupOp}. 0N/A * @see BufferedImage 0N/A * @see BufferedImageOp 0N/A * Constructs a <code>BufferedImageFilter</code> with the 0N/A * @param op the specified <code>BufferedImageOp</code> to 0N/A * use to filter a <code>BufferedImage</code> 0N/A * @throws NullPointerException if op is null 0N/A * Returns the <code>BufferedImageOp</code>. 0N/A * @return the operator of this <code>BufferedImageFilter</code>. 0N/A * Filters the information provided in the 0N/A * {@link ImageConsumer#setDimensions(int, int) setDimensions } method 0N/A * of the {@link ImageConsumer} interface. 0N/A * Note: This method is intended to be called by the 0N/A * {@link ImageProducer} of the <code>Image</code> whose pixels are 0N/A * being filtered. Developers using this class to retrieve pixels from 0N/A * an image should avoid calling this method directly since that 0N/A * operation could result in problems with retrieving the requested 0N/A * @param width the width to which to set the width of this 0N/A * <code>BufferedImageFilter</code> 0N/A * @param height the height to which to set the height of this 0N/A * <code>BufferedImageFilter</code> 0N/A * @see ImageConsumer#setDimensions 0N/A * Filters the information provided in the 0N/A * {@link ImageConsumer#setColorModel(ColorModel) setColorModel} method 0N/A * of the <code>ImageConsumer</code> interface. 0N/A * If <code>model</code> is <code>null</code>, this 0N/A * method clears the current <code>ColorModel</code> of this 0N/A * <code>BufferedImageFilter</code>. 0N/A * Note: This method is intended to be called by the 0N/A * <code>ImageProducer</code> of the <code>Image</code> 0N/A * whose pixels are being filtered. Developers using this 0N/A * class to retrieve pixels from an image 0N/A * should avoid calling this method directly since that 0N/A * operation could result in problems with retrieving the 0N/A * @param model the {@link ColorModel} to which to set the 0N/A * <code>ColorModel</code> of this <code>BufferedImageFilter</code> 0N/A * @see ImageConsumer#setColorModel 0N/A * Filters the information provided in the <code>setPixels</code> 0N/A * method of the <code>ImageConsumer</code> interface which takes 0N/A * an array of bytes. 0N/A * Note: This method is intended to be called by the 0N/A * <code>ImageProducer</code> of the <code>Image</code> whose pixels 0N/A * are being filtered. Developers using 0N/A * this class to retrieve pixels from an image should avoid calling 0N/A * this method directly since that operation could result in problems 0N/A * with retrieving the requested pixels. 0N/A * @throws IllegalArgumentException if width or height are less than 0N/A * @see ImageConsumer#setPixels(int, int, int, int, ColorModel, byte[], 0N/A if (w <
0 || h <
0) {
0N/A if (w ==
0 || h ==
0) {
0N/A * Filters the information provided in the <code>setPixels</code> 0N/A * method of the <code>ImageConsumer</code> interface which takes 0N/A * an array of integers. 0N/A * Note: This method is intended to be called by the 0N/A * <code>ImageProducer</code> of the <code>Image</code> whose 0N/A * pixels are being filtered. Developers using this class to 0N/A * retrieve pixels from an image should avoid calling this method 0N/A * directly since that operation could result in problems 0N/A * with retrieving the requested pixels. 0N/A * @throws IllegalArgumentException if width or height are less than 0N/A * @see ImageConsumer#setPixels(int, int, int, int, ColorModel, int[], 0N/A if (w <
0 || h <
0) {
0N/A if (w ==
0 || h ==
0) {
0N/A * Filters the information provided in the <code>imageComplete</code> 0N/A * method of the <code>ImageConsumer</code> interface. 0N/A * Note: This method is intended to be called by the 0N/A * <code>ImageProducer</code> of the <code>Image</code> whose pixels 0N/A * are being filtered. Developers using 0N/A * this class to retrieve pixels from an image should avoid calling 0N/A * this method directly since that operation could result in problems 0N/A * with retrieving the requested pixels. 0N/A * @param status the status of image loading 0N/A * @throws ImagingOpException if there was a problem calling the filter 0N/A * method of the <code>BufferedImageOp</code> associated with this 0N/A * @see ImageConsumer#imageComplete 0N/A // reinitialize the params