ImageConsumer.setPixels

ImageConsumer.setPixels

Interface Overview | Interface Members | This Package | All Packages

Syntax 1
public abstract void setPixels( int x, int y, int w, int h, ColorModel model, byte pixels[], int off, int scansize )
Description
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 bytes.

See Also
ColorModel



Syntax 2
public abstract void setPixels( int x, int y, int w, int h, ColorModel model, int pixels[], int off, int scansize )
Description
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.

See Also
ColorModel