public void setPixels?( int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
Filters the information provided in the setPixels method of the ImageConsumer interface which takes an array of integers. Note: This method is intended to be called by the ImageProducer of the Image whose pixels are being filtered. Developers using this class to retrieve pixels from an image should avoid calling this method directly since that operation could result in problems with retrieving the requested pixels.
-
Specified by:
-
setPixels in interface ImageConsumer
-
Overrides:
-
setPixels in class ImageFilter
-
Parameters:
-
x - the X coordinate of the upper-left corner of the area of pixels to be set
-
y - the Y coordinate of the upper-left corner of the area of pixels to be set
-
w - the width of the area of pixels
-
h - the height of the area of pixels
-
model - the specified ColorModel
-
pixels - the array of pixels
-
off - the offset into the pixels array
-
scansize - the distance from one row of pixels to the next in the pixels array
-
Throws:
-
IllegalArgumentException - if width or height are less than zero.
-
See Also:
-
ImageConsumer.setPixels(int, int, int, int, ColorModel, int[], int, int)
|
|