Bmpval check_header : string -> Images.headerChecks the file header
val load : string -> Images.load_option list -> Images.tLoads a bmp image.
val save : string -> Images.save_option list -> Images.t -> unitSave an image in bmp format file.
Below, they are all lower interfaces
The type of bmp images.
type bmp = {bmpFileHeader : bitmapfileheader; | (* Bytes <0 14< *) |
bmpInfoHeader : bitmapinfoheader; | (* Bytes <14 54< *) |
bmpRgbQuad : Images.rgb array; | (* Bytes <54 ... *) |
bmpBytes : bytes; | (* Bytes <bfOffBits ... *) |
}The Caml representation of a bmp bit map image. Fields are Caml values, the decoded versions of raw data in the file.
Structure of bitmaps files on disk :
and bitmapinfoheader = {biSize : int; | (* Bytes <14 18< *) |
biWidth : int; | (* Bytes <18 22< *) |
biHeight : int; | (* Bytes <22 26< *) |
biPlanes : int; | (* Bytes <26 28< *) |
biBitCount : bibitcount; | (* Bytes <28 30< *) |
biCompression : bicompression; | (* Bytes <30 34< *) |
biSizeImage : int; | (* Bytes <34 38< *) |
biXPelsPerMeter : int; | (* Bytes <38 42< *) |
biYPelsPerMeter : int; | (* Bytes <42 46< *) |
biClrUsed : int; | (* Bytes <46 50< *) |
biClrImportant : int; | (* Bytes <50 54< *) |
}and bicompression = and bibitcount = val load_bmp : string -> bmpval save_bmp : string -> bmp -> unitLoad and save functions for BMP images.