[Previous] [Contents] [Next]

_my_setpixel_l(), _my_setpixel_p()

draw a single pixel

Synopsis:

void _my_setpixel_l( int x, int y, 
                     unsigned long color );

void _my_setpixel_p( int x, int y, 
                     unsigned long color );

Description:

These functions draw a single pixel in the specified color at the given point (in source coordinates); _my_setpixel_l() is for landscape mode, while _my_setpixel_p() is for portrait.

These are convenience functions that are assigned to the fn_my_setpixel member of the _doc_ctrl structure. The render library assigns the portrait or landscape version as appropriate for the orientation member of the control structure. When drawing in source coordinates, you can simply use the function pointed to by fn_my_setpixel.

Classification:

Photon

Safety:
Interrupt handler Not applicable
Signal handler Not applicable
Thread Not applicable

[Previous] [Contents] [Next]