PsiLAB Help Manual Page

Section: Image processing functions

Name: load

Read an image from a file. Read the header of an image file loads the image by calling corresponding loading method, and returns it. If the file format is not supported by the library, a Wrong_file_type exception will be raised. You can specify loading options in such as progressive meter function.

load filename:string
options:Image.load_option list
-> Image.t

Supported formats:

[ Gif, Bmp, Jpeg, Tiff, Png, Xpm, Ppm, Ps ]


[] let im = load "/dat/test.bmp" [] ;; 
val im : Image.t 

Printed by PsiLAB