1 /*
2 * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
140 * this method directly since that operation could interfere
141 * with the filtering operation.
142 * @see ImageConsumer#setHints
143 */
144 public void setHints(int hints) {
145 consumer.setHints(hints);
146 }
147
148 /**
149 * Filters the information provided in the setPixels method of the
150 * ImageConsumer interface which takes an array of bytes.
151 * <p>
152 * Note: This method is intended to be called by the ImageProducer
153 * of the Image whose pixels are being filtered. Developers using
154 * this class to filter pixels from an image should avoid calling
155 * this method directly since that operation could interfere
156 * with the filtering operation.
157 * @see ImageConsumer#setPixels
158 */
159 public void setPixels(int x, int y, int w, int h,
160 ColorModel model, byte pixels[], int off,
161 int scansize) {
162 consumer.setPixels(x, y, w, h, model, pixels, off, scansize);
163 }
164
165 /**
166 * Filters the information provided in the setPixels method of the
167 * ImageConsumer interface which takes an array of integers.
168 * <p>
169 * Note: This method is intended to be called by the ImageProducer
170 * of the Image whose pixels are being filtered. Developers using
171 * this class to filter pixels from an image should avoid calling
172 * this method directly since that operation could interfere
173 * with the filtering operation.
174 * @see ImageConsumer#setPixels
175 */
176 public void setPixels(int x, int y, int w, int h,
177 ColorModel model, int pixels[], int off,
178 int scansize) {
179 consumer.setPixels(x, y, w, h, model, pixels, off, scansize);
180 }
181
182 /**
183 * Filters the information provided in the imageComplete method of
184 * the ImageConsumer interface.
185 * <p>
186 * Note: This method is intended to be called by the ImageProducer
187 * of the Image whose pixels are being filtered. Developers using
188 * this class to filter pixels from an image should avoid calling
189 * this method directly since that operation could interfere
190 * with the filtering operation.
191 * @see ImageConsumer#imageComplete
192 */
193 public void imageComplete(int status) {
194 consumer.imageComplete(status);
195 }
196
197 /**
|
1 /*
2 * Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
140 * this method directly since that operation could interfere
141 * with the filtering operation.
142 * @see ImageConsumer#setHints
143 */
144 public void setHints(int hints) {
145 consumer.setHints(hints);
146 }
147
148 /**
149 * Filters the information provided in the setPixels method of the
150 * ImageConsumer interface which takes an array of bytes.
151 * <p>
152 * Note: This method is intended to be called by the ImageProducer
153 * of the Image whose pixels are being filtered. Developers using
154 * this class to filter pixels from an image should avoid calling
155 * this method directly since that operation could interfere
156 * with the filtering operation.
157 * @see ImageConsumer#setPixels
158 */
159 public void setPixels(int x, int y, int w, int h,
160 ColorModel model, byte[] pixels, int off,
161 int scansize) {
162 consumer.setPixels(x, y, w, h, model, pixels, off, scansize);
163 }
164
165 /**
166 * Filters the information provided in the setPixels method of the
167 * ImageConsumer interface which takes an array of integers.
168 * <p>
169 * Note: This method is intended to be called by the ImageProducer
170 * of the Image whose pixels are being filtered. Developers using
171 * this class to filter pixels from an image should avoid calling
172 * this method directly since that operation could interfere
173 * with the filtering operation.
174 * @see ImageConsumer#setPixels
175 */
176 public void setPixels(int x, int y, int w, int h,
177 ColorModel model, int[] pixels, int off,
178 int scansize) {
179 consumer.setPixels(x, y, w, h, model, pixels, off, scansize);
180 }
181
182 /**
183 * Filters the information provided in the imageComplete method of
184 * the ImageConsumer interface.
185 * <p>
186 * Note: This method is intended to be called by the ImageProducer
187 * of the Image whose pixels are being filtered. Developers using
188 * this class to filter pixels from an image should avoid calling
189 * this method directly since that operation could interfere
190 * with the filtering operation.
191 * @see ImageConsumer#imageComplete
192 */
193 public void imageComplete(int status) {
194 consumer.imageComplete(status);
195 }
196
197 /**
|