csdchang@ubvmsb.cc.buffalo.edu (Chengping Chang) (07/10/90)
Please help ...
I encountered this problem the other day. When printing a
1040x630 binary image (see code #1 below), the output is
merely duplicate strips of the top few rows. But if I split
the image into two pieces (see code #2 below), make each half
be of size 1040x315 and concatenate them with appropriate
"translate" command, then the output is correct.
I get the same result on both Apple LaserWriter NTX and DEC LPS40.
The matrix is set up according to the PostScript "redbook" and
works fine for smaller images. Why is this happening ? I am puzzled.
Is there a limitation on the size of image PostScript can handle ?
%% Code piece #1, a 1040 by 630 by 1 image
72 72 scale
1040 630 1 [1040 0 0 -630 0 630] {<
C3FFFFFFFFFFFFBFFFEFFFFFFF9E7FFFBFFFFFFFFFEF0C30C10C71FFFFFB
.. ...
C30410C30C30C30C30C3 >} image showpage
%% Code piece #2, two images, each one is 1040 by 315 by 1
0 1 translate
72 72 scale
1040 315 1 [1040 0 0 -315 0 315] {<
C3FFFFFFFFFFFFBFFFEFFFFFFF9E7FFFBFFFFFFFFFEF0C30C10C71FFFFFB
.. ...
30E78E38E38E38E30C10400000410430C38C38C10C30C104100000000000
>} image
0 -1 translate
1040 315 1 [1040 0 0 -315 0 315] {<
477F77F77410F10F10F77F77F77F77F77F77F10F77F77F77F10F77F10477
.. ...
C30410C30C30C30C30C3
>} image showpagehenry@angel.Eng.Sun.COM (Henry McGilton--Desktops Spoke Here) (07/10/90)
In article <30201@eerie.acsu.Buffalo.EDU>, csdchang@ubvmsb.cc.buffalo.edu (Chengping Chang) writes:
* I encountered this problem the other day. When printing a
* 1040x630 binary image (see code #1 below), the output is
* merely duplicate strips of the top few rows.
* The matrix is set up according to the PostScript "redbook" and
* works fine for smaller images. Why is this happening ? I am puzzled.
* Is there a limitation on the size of image PostScript can handle ?
* %% Code piece #1, a 1040 by 630 by 1 image
* 72 72 scale
* 1040 630 1 [1040 0 0 -630 0 630] {<
* C3FFFFFFFFFFFFBFFFEFFFFFFF9E7FFFBFF
* ... ...
* C30410C30C30C30C30C3 >} image showpage
The trick of using a {< . . . >} construct to place a
string inside an executable object on the stack fails
because the maximum length of a string is 65,535
characters, as defined on page 260 of the Red Book.
........ Henry