Grimage

Grimage is a library that enables reading, writing, and drawing images in Caml Light. It handles the BMP and PPM formats. A special extension to the PPM format allows the manipulation of images with transparent areas in them.

It is freely available via FTP and HTTP.

High level interface with the Grimage library uses a generic image format named grimage. Images are converted to and from the grimage format, and then read and written to the file system.

Reading and writing images

Grimage handles the following formats:

Bitmap and transparency manipulation

Elementary facilities to transform pixmaps (a color image represented as a matrix of R, G, B values) are provided by Grimage:

Low level use of the library is still possible via direct calls to functions from the Bmp and Ppm modules.

For more info about the library, read the interfaces of the modules and have a look to the test directory for working examples.

Enjoy Grimage!

Pierre weis.