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/pisetpixel.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/pisetpixel.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/pisetpixel.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/pisetpixel.html on line 8
Alter the value of a pixel within an image
int PiSetPixel( PhImage_t *image,
unsigned short x,
unsigned short y,
unsigned long value );
ph
This function alters 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 modified,
while the x and y arguments specify the
coordinates of the pixel to change.
The value argument specifies the new value of the pixel, and its
meaning depends on the image's type. See the documentation for
PiGetPixel()
to see how this argument is interpreted.
- 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(),
PiGetPixelFromData(),
PiGetPixelRGB(),
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/pisetpixel.html on line 121
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/pisetpixel.html on line 121