ImageData.getPixel

Returns the pixel value at offset <code>x</code> in scanline <code>y</code> in the receiver's data.

@param x the x position of the pixel to get @param y the y position of the pixel to get @return the pixel at the given coordinates

@exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT - if either argument is out of bounds</li> </ul> @exception SWTException <ul> <li>ERROR_UNSUPPORTED_DEPTH if the depth is not one of 1, 2, 4, 8, 16, 24 or 32</li> </ul>

class ImageData
int
getPixel
(
int x
,
int y
)

Meta