(a)
void setPixels( int x, int y, int w, int h, ColorModel cm, byte[] pixels, int offset, int scansize);
(b)
void setPixels( int x, int y, int w, int h, ColorModel cm, int[] pixels, int offset, int scansize);
Example 2: Function prototypes of the two setPixels() functions.