graphics.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_setpixel, _setpixel_w
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The _setpixel and _setpixel_w functions set to the current color a
     pixel at a specified location.
 
     The _setpixel function sets the color of the pixel at the
     view-coordinate point (x, y).
 
     The _setpixel_w function sets the color of the pixel at the
     window-coordinate point (wx, wy). This routine is implemented as a
     macro.
 
     Return Value
 
     The functions return the previous value of the target pixel. If
     the function fails (for example, the point lies outside the
     clipping region), it will return -1.
                                    -♦-