deltaPrint

Martin Wierich martinw@cs.kun.nl
Wed, 19 Jan 2000 11:08:12 +0100


Hi all,

"Zuurbier, E. - AMSXE" wrote:

> Hi all,
>
> Why does it take such a long time compared to the window-drawing version? Is
> it the intermediate pstscript file that contains 10,000 individual 'point
> drawing instructions' rather than a single bit-map?

This is exactly what the operating system does. We once tried to do the same
like you did and ended up after half an hour computing time with a 40MB
postscript file that took again half an hour to be printed.

> Is there some way to get
> the same performance the window drawing version has?
>

The solution would be to get the image into a bitmap and then to print the
bitmap. Currently the only way to generate a bitmap in Clean is to read it from
a file. It would be nice to have a function that turns a drawing function into a
bitmap, like

recordBitmap :: (*Picture -> .Picture) (Int, Int) -> Bitmap

The generated bitmap should be the image that the drawing function argument
draws within the rectangle given by the two integers (or possibly four). But
realising such things currently has a low priority.

greetings
  Martin Wierich
  University of Nijmegen