From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA17167 for caml-redistribution; Mon, 25 Aug 1997 11:33:14 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA11180 for ; Mon, 11 Aug 1997 15:22:50 +0200 (MET DST) Received: from enst.enst.fr (EUchzfNdqZrxWHMGlZGbRMkaWhoLsGdi@enst.enst.fr [137.194.2.16]) by nez-perce.inria.fr (8.8.5/8.8.5) with ESMTP id PAA15817 for ; Mon, 11 Aug 1997 15:22:48 +0200 (MET DST) Received: from liszt.enst.fr (liszt.enst.fr [137.194.32.2]) by enst.enst.fr (8.8.4/8.8.4) with SMTP id PAA02841; Mon, 11 Aug 1997 15:22:46 +0200 (MET DST) Received: from Montchapet (remote02.ac-dijon.fr) by liszt.enst.fr (MX V4.2 AXP) with SMTP; Mon, 11 Aug 1997 15:21:58 MET_DST Message-ID: <33EF1200.697B69B2@cal.enst.fr> Date: Mon, 11 Aug 1997 15:22:08 +0200 From: Michel Quercia X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.29 i586) MIME-Version: 1.0 To: caml-list CC: ups-info Subject: Graphx library Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: weis English translation below. ------------------------------------------------------------------------------ [graphx] est une petite bibliothèque conçue pour fonctionner au dessus de [libgraph] et permettre d'enregistrer l'image courante dans un fichier (ou l'envoyer dans un tuyau sous Unix). Le fichier obtenu peut être édité, inclus dans un rapport ou simplement imprimé. Les formats de sortie gérés sont : Postscript encapsulé : pour l'impression directe sur une imprimante postscript ou à travers un interpréteur postscript tel que [ghostscript], ainsi que l'inclusion dans un document TeX/LaTeX à l'aide des paquetages [psfig/epsfig]. Macros pstricks : pour l'inclusion dans un document TeX/LaTeX avec le paquetage [pstricks]. Le fichier produit est un fichier TeX complet, retirer les commandes [\input] et [\bye] avant inclusion. FIG-3.2 : pour l'édition à la souris avec le programme [xfig] (disponible uniquement sous Unix à ma connaissance). Le dessin peut ensuite être exporté sous divers formats, en particulier le format postscript encapsulé, avec le logiciel [transfig]. Targa 24 bits : pour l'affichage et l'impression à condition de disposer des logiciels nécessaires, [xv] ou [tgatoppm] et [ppmtops] du paquetage [netpbm] par exemple. Portable Pixmap 24 bits : Comme ci-dessus, en court-circuitant la conversion [tga] -> [ppm]. Vous pouvez générer du ppm-"ascii" (chaque pixel est codé par trois nombres décimaux) ou du ppm-"binaire" (chaque pixel est codé par trois octets, format moins portable, mais grosso-modo quatre fois moins encombrant). Si vous disposez des outils [netpbm], vous pouvez convertir le fichier ppm en GIF, ce qui divise la taille du fichier final par 10. La bibliothèque a été testée avec succès sous Linux avec caml-light 0.73 et objective caml 1.05, et superficiellement sous Windows-95 avec camlwin 0.72 et ocamlwin 1.05. Elle est disponible en ftp anonyme à l'URL suivant : ftp://ftp.ac-dijon.fr/\carnot1\info\graphx.tgz ------------------------------------------------------------------------------ [graphx] is a small library designed to work on top of [libgraph] and provide functions to save the current picture on a file (or through a pipe on unix systems) for hand editing, including in reports, or just printing. It can output the picture in the following formats : Encapsulated Postscript : suitable for direct printing on a postscript device or through a postscript interpretor such as [ghostscript], and for inclusion in a TeX/LaTeX document with the [psfig/epsfig] packages. Pstricks macros : suitable for inclusion in a TeX/LaTeX document with the [pstricks] package. The output file is a standalone TeX file, you'll have to remove the [\input] and [\bye] commands before inclusion. FIG-3.2 : suitable for mouse editing with the [xfig] program (available only on unix systems as far as I know). The file can then be translated to various graphic formats, including encapsulated postscript, with the [transfig] software. 24 bits Targa : suitable for screen previewing, and for printing provided you have the necessary software, [xv] or [tgatoppm] and [ppmtops] from the [netpbm] package for example. 24 bits portable pixmap : same as above, you just spare the [tga] -> [ppm] conversion phase. You can either generate ``ascii''-ppm (each pixel in encoded as three decimal numbers) or ``binary''-ppm (each pixel is encoded as three bytes, less portable but roughly four times more compact). If you have the [netpbm] tools, you can turn the ppm file into GIF, which may reduce the final file size by a factor of 10. The library has been successfully tested on Linux with caml-light 0.73 and objective caml 1.05, and superficially tested on Windows-95 with camlwin 0.72 and ocamlwin 1.05. You can download it through anonymous ftp at the URL : ftp://ftp.ac-dijon.fr/\carnot1\info\graphx.tgz -- Michel Quercia Lycee Carnot 16 bd Thiers 21000 Dijon mailto:quercia@cal.enst.fr