English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Graphics without open_graph?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-05-02 (15:19)
From: José Manuel Nunes <Jose.deAbreuNunes@a...>
Subject: Re: [Caml-list] Graphics without open_graph?
On Thu, 2002-05-02 at 14:36, Gerd Stolpmann wrote:
> ...
> > I guess that you want to use drawing functions (lines, circles...) 
> > available inside Graphics, without opening the graphic window, and
> > obtain results as some graphic file format.
> > 
> > If my guess is correct, unfortunatelly, the drawing function of the
> > Graphics library highly depends on those of the window system (X on
> > Unix, for example). Using these functions without windowing systems is
> > impossible at this moment.
> One way out would be a virtual X11 server that is not connected to any
> hardware device but has a "screen" that only exists in memory (e.g.
> http://www.xfree.org/4.2.0/Xvfb.1.html). A quick test shows that it really
> works:
Thanks a lot!
There is even a convenient script xvfb-run (at least on debian) that
allows a command to be run inside such a X virtual server.

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners