Sets a pixel in this BufferedImage to the specified
RGB value. The pixel is assumed to be in the default RGB color
model, TYPE_INT_ARGB, and default sRGB color space. For images
with an IndexColorModel, the index with the nearest
color is chosen.
An ArrayOutOfBoundsException may be thrown
if the coordinates are not in bounds.
However, explicit bounds checking is not guaranteed.
x | the X coordinate of the pixel to set | |
y | the Y coordinate of the pixel to set | |
rgb | the RGB value |
getRGB(int, int), getRGB(int, int, int, int, int[], int, int)
Diagram: Image