home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_01_02
/
1n02023a
< prev
next >
Wrap
Text File
|
1990-07-09
|
805b
|
24 lines
#include <stdio.h>
/******************************************************************
* set_pixel - turn on a single point on the laser printer page
*
* Parameters:
* x (in) - x coordinate (in dots) of the point
* y (in) - y coordinate (in dots) of the point
*
* Notes:
* 1. Coordinates are relative to 0,0 at the upper left corner
* of the display page.
*
* Copyright:
* Original code by William H. Roetzheim (619) 669-6970
**********************************************************************/
void set_pixel (int x, int y)
{
fprintf(stdprn, "\033*p%dx%dY", x, y); /* cursor to x,y posit */
fprintf(stdprn, "\033*r1A"); /* start raster graphics */
fprintf(stdprn, "\033*b1W\200"); /* draw one dot */
fprintf(stdprn, "\033*rB"); /* end raster graphics */
}