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-03 (05:40)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] Graphics without open_graph?

On Thu, 2 May 2002, Gerd Stolpmann wrote:

> On 2002.05.02 12:44 Jun P.FURUSE wrote:
> > Hello,
> > 
> > > I've written a caml-top program whose output includes graphics generated
> > > via Graphics module and camlimages.
> > > I'm making this program accessible through a web site and I would like
> > > to also include the graphic output. The problem is that the program will
> > > be running non-interactive under a non graphic environment.
> > > So the question is: would it be possible to use the same graphics code?
> > > what to adapt?
> > 
> > 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.

That is not correct: The Graphics-Library is independent
of X11. It's especially designed to be independent and
therefore provides a platform-independent graphic.
And that's the reason, why the set of available functions
is limited to a small subset.
This then can be used on Unix-, Windows-, Mac-Systems.
No X11 (or X11-emulators) is (are) required.

But on unix-systems it maybe is only available
on X11 right now.

> I suppose it will never be possible, because the drawing functions simply
> call the drawing primitives of the windowing system. 

Interesting in the Graphics-Lib is, that the names of the
graphics-functions are the same as in PostScript.
It would be nice to have the possibility to directly
write PostScript-Files with that Library too. :)


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