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/pigetpixelfromdata.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/pigetpixelfromdata.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/pigetpixelfromdata.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/pigetpixelfromdata.html on line 8
Retrieve a value from a run of pixels
int PiGetPixelFromData( char const *data,
int type,
unsigned short pixel,
unsigned long *value );
ph
This function is similar to
PiGetPixel(),
except that PiGetPixelFromData() retrieves the value from a run
of pixels pointed to by data, instead of from an image.
The type argument indicates the format of the data and
must correspond to one of the supported image types, as listed for
PhImage_t.
The pixel argument is the index of the pixel into the run of data,
and value points to an area where you want the result to be 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 |
PhImage_t,
PiGetPixel(),
PiGetPixelRGB(),
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/pigetpixelfromdata.html on line 115
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/pigetpixelfromdata.html on line 115