[comp.lang.postscript] Speeding up Image Rendering.

avinash@contex.UUCP (Avinash Chopde) (01/30/91)

I am trying to determine the fastest way of printing
a raster image on a PostScript device.

The key is that my raster images contain
runs of tints i.e., each scanline is represented as multiple
runs:

<run length><graylevel>......

Now, I have done the most obvious things: send in encoded data,
decode it on the printer in PostScript, etc.

Using the image operator takes around 60 mins on an old PostScript
device.

(A 300dpi device, image is 6x7 inches)

I changed the code so that instead of the image operator, the program now
draws rectangles of the appropriate size (x-length is the run length,
y-length is the height of a scanline).

It works much faster now (takes around 15 mins!) BUT, there is a loss of
detail -- runlengths of less than 7-8 pixels get lost!

Seems like the setgray/fill operations do not render correctly, or
atleast do not render as well as the image operator, when small features
are considered.

Would be glad if someone can shed some light on this.. or suggest
other approaches....
-- 
---------------------------
Avinash Chopde             home :   508 470 1190     office : 617 224 5582
(Reply broken, use this address):   contex!avinash@uunet.uu.net