66 |
|
fprintf(stderr, "%s: resolution mismatch\n", fname); |
67 |
|
return(-1); |
68 |
|
} |
69 |
< |
|
70 |
< |
fputs("\033A\014\0332", stdout); |
71 |
< |
|
69 |
> |
/* set line spacing (overlap for knitting) */ |
70 |
> |
fputs("\0333\042", stdout); |
71 |
> |
/* put out scanlines */ |
72 |
|
for (i = yres-1; i >= 0; i--) { |
73 |
|
if (freadscan(scanline, xres, input) < 0) { |
74 |
|
fprintf(stderr, "%s: read error (y=%d)\n", fname, i); |
76 |
|
} |
77 |
|
plotscan(scanline, xres, i); |
78 |
|
} |
79 |
< |
|
79 |
> |
/* advance page */ |
80 |
|
putchar('\f'); |
81 |
|
|
82 |
|
fclose(input); |
95 |
|
register long c; |
96 |
|
register int i, j; |
97 |
|
|
98 |
< |
if (bpos = y % 24) { |
98 |
> |
if (bpos = y % 23) { |
99 |
|
|
100 |
|
for (j = 0; j < 3; j++) |
101 |
|
for (i = 0; i < len; i++) |
110 |
|
putchar(len & 255); |
111 |
|
putchar(len >> 8); |
112 |
|
for (i = 0; i < len; i++) { |
113 |
< |
c = pat[i][j] | colbit(scan[i],i,j); |
114 |
< |
pat[i][j] = 0; |
113 |
> |
if (y!=0 & i+j) { /* knit bit */ |
114 |
> |
c = pat[i][j]; |
115 |
> |
pat[i][j] = colbit(scan[i],i,j) << 23; |
116 |
> |
} else { |
117 |
> |
c = pat[i][j] | colbit(scan[i],i,j); |
118 |
> |
pat[i][j] = 0; |
119 |
> |
} |
120 |
|
putchar(c>>16); |
121 |
|
putchar(c>>8 & 255); |
122 |
|
putchar(c & 255); |