void setPixels?( int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
The pixels of the image are delivered using one or more calls to the setPixels method. Each call specifies the location and size of the rectangle of source pixels that are contained in the array of pixels. The specified ColorModel object should be used to convert the pixels into their corresponding color and alpha components. Pixel (m,n) is stored in the pixels array at index (n * scansize + m + off). The pixels delivered using this method are all stored as ints. this method are all stored as ints.
-
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
|