Warning:  main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pi/pigetpixelrgb.html on line 1
Warning:  main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pi/pigetpixelrgb.html on line 1
Warning:  main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pi/pigetpixelrgb.html on line 8
Warning:  main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pi/pigetpixelrgb.html on line 8
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.
- 0
 
- Success.
 
- -1
 
- An error occurred because the pixel was out of bounds or the 
  image type wasn't recognized.
 
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
Warning:  main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pi/pigetpixelrgb.html on line 120
Warning:  main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pi/pigetpixelrgb.html on line 120