125 |
|
else |
126 |
|
printf("%%%%Portrait\n"); |
127 |
|
printf("%%%%EndComments\n"); |
128 |
– |
printf("gsave\n"); |
128 |
|
printf("64 dict begin\n"); |
129 |
|
/* define image reader */ |
130 |
|
PSprocdef("read6bit"); |
171 |
|
{ |
172 |
|
short itab[128]; |
173 |
|
register int i; |
174 |
< |
|
175 |
< |
for (i = 0; i < 128; i++) |
174 |
> |
/* assign code values */ |
175 |
> |
for (i = 0; i < 128; i++) /* clear */ |
176 |
|
itab[i] = -1; |
177 |
< |
for (i = 0; i < 64; i++) |
177 |
> |
for (i = 1; i < 63; i++) /* assign greys */ |
178 |
|
itab[code[i]] = i<<2 | 2; |
179 |
+ |
itab[code[0]] = 0; /* black is black */ |
180 |
+ |
itab[code[63]] = 255; /* and white is white */ |
181 |
|
printf("/decode ["); |
182 |
|
for (i = 0; i < 128; i++) { |
183 |
|
if (!(i & 0xf)) |