![]() |
![]() |
![]() |
![]() |
Retrieve the RGB value of a pixel within an image
int PiGetPixelRGB( PhImage_t const *image,
unsigned short x,
unsigned short y,
PgColor_t *value );
ph
This function retrieves the RGB value of a pixel within an image.
The image argument is a pointer to a PhImage_t structure that defines the image to be queried, while the x and y arguments specify the coordinates of the pixel to be examined. The value argument points to a PgColor_t where the result of the query is stored.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PgColor_t, PhImage_t, PiGetPixel(), PiGetPixelFromData(), PiSetPixel(), PiSetPixelInData()
“Images” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |