ImageData.setPixels

Sets the pixel values starting at offset <code>x</code> in scanline <code>y</code> in the receiver's data to the values from the array <code>pixels</code> starting at <code>startIndex</code>.

@param x the x position of the pixel to set @param y the y position of the pixel to set @param putWidth the width of the pixels to set @param pixels the pixels to set @param startIndex the index at which to begin setting

@exception IndexOutOfBoundsException if putWidth 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 putWidth is negative</li> </ul> @exception SWTException <ul> <li>ERROR_UNSUPPORTED_DEPTH if the depth is not one of 1, 2, 4, 8 (For higher depths, use the int[] version of this method.)</li> </ul>

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

Meta