public abstract void setPixels (int x, int y, int w, int h, PixelFormat<IntBuffer> pixelformat, int[] buffer, int offset, int scanlineStride)

Stores pixel data from an int array into a rectangular region of the surface. The format of the pixels in the buffer is defined by the PixelFormat object and pixel format conversions will be performed as needed to store the data into the surface. The pixelformat must be a compatible PixelFormat<IntBuffer> type. The data for the first pixel at location (x, y) will be read from the array index specified by the offset parameter. Pixel data for a row will be read from adjacent locations within the array packed as tightly as possible for increasing X coordinates. Pixel data for adjacent rows will be read offset from each other by the number of int array elements defined by scanlineStride.

Parameters:
x    the X coordinate of the rectangular region to write
y    the Y coordinate of the rectangular region to write
w    the width of the rectangular region to write
h    the height of the rectangular region to write
pixelformat    the PixelFormat<IntBuffer> object defining the int format to read the pixels from buffer
buffer    an int array to containing the pixel data to store
offset    the offset into buffer to read the first pixel data
scanlineStride    the distance between the pixel data for the start of one row of data in the buffer to the start of the next row of data

Exceptions:
java.lang.NullPointerException    if @{code pixelformat} or buffer is null