![]() |
![]() |
![]() |
draw a single pixel
void _my_setpixel_l( int x, int y, unsigned long color ); void _my_setpixel_p( int x, int y, unsigned long color );
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.
Photon
Safety: | |
---|---|
Interrupt handler | Not applicable |
Signal handler | Not applicable |
Thread | Not applicable |
![]() |
![]() |
![]() |