package camlimages

  1. Overview
  2. Docs
Image processing library

Install

Dune Dependency

Authors

Maintainers

Sources

camlimages-5.0.4.tar.bz2
sha256=1c9a68bdc3d348c9f859d490dadf384926213e47a584159832f7fc4a20242865
md5=1ddba74d210b86a899b5d6565f45c2dc

doc/src/camlimages.core/oPpm.ml.html

Source file oPpm.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(***********************************************************************)
(*                                                                     *)
(*                           Objective Caml                            *)
(*                                                                     *)
(*            Jun Furuse, projet Cristal, INRIA Rocquencourt           *)
(*                                                                     *)
(*  Copyright 1999, 2004                                               *)
(*  Institut National de Recherche en Informatique et en Automatique.  *)
(*  Distributed only by permission.                                    *)
(*                                                                     *)
(***********************************************************************)

(* $Id: oPpm.ml,v 1.1 2007/01/18 10:29:57 rousse Exp $ *)

open OImages

let load name opts = OImages.make (Ppm.load name opts)

let save name opts image =
  match image#image_class with
  | ClassRgb24 | ClassIndex8 -> Ppm.save name opts image#image
  | _ -> raise Wrong_image_class
OCaml

Innovation. Community. Security.