Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
PiSetPixelInData

PiSetPixelInData

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

PiSetPixelInData()

Set the value of a pixel in a run of pixels

Synopsis:

int PiSetPixelInData( char *data,
                      int type,
                      ushort_t pixel,
                      ulong_t value );

Library:

ph

Description:

This function is similar to PiSetPixel(), except that PiSetPixelInData() sets the value of a pixel in a run of pixels pointed to by data, instead of in 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 is the new value for the pixel.

Returns:

0
Success.
-1
An error occurred because the pixel was out of bounds or the image type wasn't recognized.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PiGetPixel(), PiGetPixelFromData(), PiGetPixelRGB(), PiSetPixel()

"Images" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide