Retrieve the value of a pixel within an image
int PiGetPixel( PhImage_t const *image, unsigned short x, unsigned short y, unsigned long *value );
ph
This function retrieves the 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 an area of memory where the result of the query is stored. The meaning of this value depends on the type of the image, as follows:
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PgColor_t, PhImage_t, PiGetPixelFromData(), PiGetPixelRGB(), PiSetPixel(), PiSetPixelInData()
“Images” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide