The command line is:
pbm2caml -c file
to convert the file to a caml source file,
the out file has the name "file.ml".
the caml array is called file (without the suffix).
pbm2caml -d file
to display the file,
pbm2caml -c in_file -o out_file
to convert the pbm file
in_file into a caml file out_file.
pbm2caml -i -c in_file
to convert the pbm and save
the array of colour with output_value. The array can be loaded with:
((input_value channel):color vect vect)
readpbm : string -> color vect vect
that reads a pbm,
pgm pbm file and returns an array of colors,
let pbmtype = { magic_number : string; pbm_width : int; pbm_height : int; pbmmax_color : int };;
readpbm_head : string -> pbmType
that
return the caracteristics of a pbm, pgm or ppm file.
onehelp ProjName OutName
: concat all the html files in the
project file "Projname.prj" into the file "OutName.html".