ImageData.getPixels

Returns <code>getWidth</code> pixel values starting at offset <code>x</code> in scanline <code>y</code> in the receiver's data starting at <code>startIndex</code>.

@param x the x position of the first pixel to get @param y the y position of the first pixel to get @param getWidth the width of the data to get @param pixels the buffer in which to put the pixels @param startIndex the offset into the buffer to begin storing pixels

@exception IndexOutOfBoundsException if getWidth is too large @exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if pixels is null</li> <li>ERROR_INVALID_ARGUMENT - if x or y is out of bounds</li> <li>ERROR_INVALID_ARGUMENT - if getWidth is negative</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>

  1. void getPixels(int x, int y, int getWidth, byte[] pixels, int startIndex)
  2. void getPixels(int x, int y, int getWidth, int[] pixels, int startIndex)
    class ImageData
    void
    getPixels
    (
    int x
    ,
    int y
    ,,
    int[] pixels
    ,
    )

Meta