package camlimages
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=8a36e7d5636358db533de71e55533fc8118444c607355b68357e0e619f3ab1d4
    
    
  md5=956fc1942a4b4c5da473ddcd9c9d028b
    
    
  doc/camlimages.core/Ppm/index.html
Module Ppm
Loading and saving images in portable format: PPM, PGM, and PBM.
PPM: portable pixmap (pixels (picture element) map). This is represented as an RGB24.t image. PGM: portable greymap (grey scale map). This is represented as an Index8.t image. PBM: portable bitmap (binary digit map). This is represented as an Index8.t image.
val load : string -> Images.load_option list -> Images.tPpm.load filename reads the image contained in the file filename, and returns an image. Assumes that the image is stored in PPM (Portable Pixmap) or PGM (Portable Greymap), or PBM (Portable Bitmap) formats. PPM format is 24 bits per pixel, and both ASCII and raw encoding are suppoorted. PGM format is 8 bits per pixel, and both ASCII and raw encoding are suppoorted. PBM is 1 bit per pixel, and both ASCII and raw encoding are suppoorted.
val save : string -> Images.save_option list -> Images.t -> unitPpm.save : filename img stores image img, on file filename. The image is saved as a portable pixmap, in raw encoding mode.
val save_bitmap : string -> Index8.t -> unitval load_bitmap : string -> Index8.tSame as above for portable bitmaps.
val load_ppm : string -> Rgb24.tval save_ppm : string -> Rgb24.t -> unitSpecialized version for portable bitmaps.