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 (none), 14 years ago

Added original make3d

File size: 415 bytes
Line 
1function o = line_idraw(fid, x1, y1, x2, y2)
2% Write to ifile the .ps code to draw a line.  Assume file is open.
3
4fprintf(fid, '\nBegin %%I Line\n%%I b 65535\n0 0 0 [] 0 SetB\n%%I cfg Black\n');
5fprintf(fid, '0 0 0 SetCFg\n%%I cbg White\n1 1 1 SetCBg\nnone SetP %%I p n');
6fprintf(fid, '%%I t\n[ 1 -0 -0 1 173 165 ] concat\n%%I\n');
7fprintf(fid, '%d %d %d %d Line\n', x1, y1, x2, y2);
8fprintf(fid, '%%I 1\nEnd\n');
Note: See TracBrowser for help on using the repository browser.