Article View: comp.lang.postscript
Article #412Re: image bitmap problem
From: Graham Beint
Date: Tue, 07 Apr 1992 19:44
Date: Tue, 07 Apr 1992 19:44
43 lines
1306 bytes
1306 bytes
In article <1992Apr3.225050.10661@mlb.semi.harris.com> jmt@semi.harris.com writes:
...
>%!
>/DataString 848 string def
>848 2550 1 [848 0 0 -2550 0 2550] {
...
>.
>.
>00
>00
>00 % last line of data
>showpage % print this sucker!
>When I send this to my Apple LWIIntx the busy light blinks forever,
...
>Looking at the line that says:
>848 2550 1 [848 0 0 -2550 0 2550] {
>(848 x 2550)pixels x 1 bit x 1 Byte = 270300 Bytes
> ------ ------
> 1 pixel 8 bits
>
>Am I making some kind of stupid error here or what?
>
Yes, try /DataString 106 string def
You are reading in blocks of 8 raster lines and 2550 mod 8 is 6 not 0
So if you pad the data with an extra 212 lines of
%00
(readhexstring will ignore % characters) you shoud be ok too
Prefixing each line of hex with a percent is probably good practice.
Technical Details
Message-ID:
<1434@uniplex.co.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!acorn!uniplex!gbReferences:
<1992Apr3.225050.10661@mlb.semi.harris.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!acorn!uniplex!gb From: gb@uniplex.co.uk (Graham Beint) Newsgroups: comp.lang.postscript Subject: Re: image bitmap problem Message-ID: <1434@uniplex.co.uk> Date: 7 Apr 92 19:44:04 GMT References: <1992Apr3.225050.10661@mlb.semi.harris.com> Reply-To: gb@uniplex.UUCP (Graham Beint) Organization: Uniplex Limited, Redwood House, Hemel Hempstead Lines: 43