Function SimpleBMPImage.getPixel
Gets the color of the pixel at the specified position.
The pixel is identified by its x and y coordinates, with the origin
(0, 0) located at the lower-left corner of the grid. The function returns
the RGB values as an RGBPixel struct.
Parameters
| Name | Description |
|---|---|
| x | The X coordinate of the pixel (origin at lower left). |
| y | The Y coordinate of the pixel (origin at lower left). |
Returns
An RGBPixel struct containing the red, green, and blue color components.