Re: [Gnome-print] Printing a gnome-canvas
- From: Lauris Kaplinski <lauris ximian com>
- To: Marco Bosch <mbosch lorentz leidenuniv nl>
- Cc: gnome-print helixcode com
- Subject: Re: [Gnome-print] Printing a gnome-canvas
- Date: 09 Feb 2001 17:33:33 +0200
Hello!
No, it is not possible and I do not think, it is a good idea at all.
Canvas is speed-optimized display engine. Gnome-print is graphic API with controlled
behaviour. So while it is possible to write intermediate layer, outputting to both
frameworks, it would be clearly distinct from both.
Or in other words - canvas has possibility for all kinds of non WYSIWYG objects, so
there simply cannot be one-size-fits-all pipeline from canvas to printer.
I would suggest implementing some model-view framework with Canvas acting as one
and gnome-print as another view. It is quite straightforward to do, and will add
some extra flexibility to your code (you may want to interface it with bonobo or
something else). Also, if you will need speed optimizations for canvas (libart is
probably not good idea, if you need to draw something 10.000 points), you can hand-tune
canvas, without breaking the print part.
Lauris Kaplinski
On 09 Feb 2001 10:28:56 +0100, Marco Bosch wrote:
> Hello all,
>
> Is it possible to print a gnome-canvas to a high-resolution postscript
> file.
> At the moment I'm working on a simulation in theoretical physics. The
> gnome-canvas is very convenient to show the results on the screen.
> However, once in a while, I would like to be able to save the results to
>
> a postscript file or print to a printer. I could make a screenshot of
> course,
> but that would be a very low resolution solution. So, I was wondering if
>
> somebody had implemented something like gnome_canvas_print("test.ps").
>
>
> greetings
>
> Marco Bosch
>
>
> _______________________________________________
> Gnome-print maillist - Gnome-print@helixcode.com
> http://lists.helixcode.com/mailman/listinfo/gnome-print
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]