public void setPixels?( int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
Choose which rows and columns of the delivered byte pixels are needed for the destination scaled image and pass through just those rows and columns that are needed, replicated as necessary. Note: This method is intended to be called by the ImageProducer of the Image whose pixels are being filtered. Developers using this class to filter pixels from an image should avoid calling this method directly since that operation could interfere with the filtering operation.
-
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
-
See Also:
-
ImageConsumer.setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)
|
|