Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] dump in camlimages
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Florent Monnier <fmonnier@l...>
Subject: Re: [Caml-list][HS] dump in camlimages
> > Do the dump functions in the camlimages library basically create a
> > string equivalent to an RAW image file?

> Yes.
>
> RGBRGB... stream for 24bit-depth image for example. Size is equal to
> 3 x width x height.

(maybe you don't mind, but just in case)
there are such features in OCaml/ImageMagick too.
you can load all the image data (in jpg, png, raw, etc..) in a string (which 
is usefull for exemple to send an image to a web browser from a cgi-bin)

you can get all the data in a BigArray too for direct exchange of data between 
ImageMagick and OCaml (which feature is only available in the devel version 
of the binding yet)

Florent