public void setPixels?( int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
If the ColorModel object is the same one that has already been converted, then simply passes the pixels through with the converted ColorModel, otherwise converts the buffer of integer pixels to the default RGB ColorModel and passes the converted buffer to the filterRGBPixels method to be converted one by one. Converts a buffer of integer pixels to the default RGB ColorModel and passes the converted buffer to the filterRGBPixels method. 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:
-
ColorModel.getRGBdefault() , filterRGBPixels(int, int, int, int, int[], int, int)
|
|