source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/missing-data/line_idraw.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 415 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function o = line_idraw(fid, x1, y1, x2, y2) |
2 | % Write to ifile the .ps code to draw a line. Assume file is open. | |
3 | ||
4 | fprintf(fid, '\nBegin %%I Line\n%%I b 65535\n0 0 0 [] 0 SetB\n%%I cfg Black\n'); | |
5 | fprintf(fid, '0 0 0 SetCFg\n%%I cbg White\n1 1 1 SetCBg\nnone SetP %%I p n'); | |
6 | fprintf(fid, '%%I t\n[ 1 -0 -0 1 173 165 ] concat\n%%I\n'); | |
7 | fprintf(fid, '%d %d %d %d Line\n', x1, y1, x2, y2); | |
8 | fprintf(fid, '%%I 1\nEnd\n'); |
Note: See TracBrowser
for help on using the repository browser.