Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Bitmap acquisition with Graphics module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michaël_Grünewald <michael-grunewald@w...>
Subject: [Caml-list] Re: Bitmap acquisition with Graphics module
Stalkern 2 <> writes:

> Hello to everybody.
> Following a recent posting on the ocaml-beginners ML, I would like to ask
> you:
> how can one load an external bitmap picture using the Graphics library?

I had in mind ther ewas XPM format support in the `Graphics' library, but i
am afraid there is not. I have no direct answer to your question, i only now
you should install the `Camlimages' <> 
and check to the examples to see how to interface it with module Graphics,
and if you are interested, with lablgtk, both are possible.
> (See for instance the picture "jussieu" at 
> )
> The book says: "A bitmap may be represented by either a color matrix
> (color array array) or a value of abstract type 1 image, which is declared
> in library Graphics. " but does not say anything about acquisition.
> Any further hint about the image formats that can be used would be
> strongly appreciated.
> Thank you
> Ernesto Torresin
Michaël Grünewald <>  - RSA PGP Key ID: 0x20D90C12
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: