package camlimages

  1. Overview
  2. Docs

Class interface for Images

exception Non_supported_method
exception Wrong_image_class
type image_class =
  1. | ClassRgb24
  2. | ClassIndex8
  3. | ClassIndex16
  4. | ClassRgba32
  5. | ClassCmyk32
class type imgsize = object ... end
class type 'a map = object ... end
class type oimage = object ... end
class type rgba32_class = object ... end
class type rgb24_class = object ... end
class rgba32 : int -> int -> rgba32_class
class rgba32_filled : int -> int -> Color.rgba -> rgba32_class
class rgba32_with : int -> int -> Info.info list -> bytes -> rgba32_class
class rgb24 : int -> int -> rgb24_class
class rgb24_filled : int -> int -> Color.rgb -> rgb24_class
class rgb24_with : int -> int -> Info.info list -> bytes -> rgb24_class
class type index8_class = object ... end
class index8 : int -> int -> index8_class
class index8_filled : int -> int -> int -> index8_class
class index8_with : int -> int -> Info.info list -> Color.rgb Color.map -> int -> bytes -> index8_class
class type index16_class = object ... end
class index16 : int -> int -> index16_class
class index16_filled : int -> int -> int -> index16_class
class index16_with : int -> int -> Info.info list -> Color.rgb Color.map -> int -> bytes -> index16_class
class type cmyk32_class = object ... end
class cmyk32 : int -> int -> cmyk32_class
class cmyk32_filled : int -> int -> Color.cmyk -> cmyk32_class
class cmyk32_with : int -> int -> Info.info list -> bytes -> cmyk32_class
val rgb24 : oimage -> rgb24_class
val index8 : oimage -> index8_class
val index16 : oimage -> index16_class
val rgba32 : oimage -> rgba32_class
val cmyk32 : oimage -> cmyk32_class
type tagged =
  1. | Rgb24 of rgb24_class
  2. | Index8 of index8_class
  3. | Index16 of index16_class
  4. | Rgba32 of rgba32_class
  5. | Cmyk32 of cmyk32_class
val tag : oimage -> tagged
val make : Images.t -> oimage
val load : string -> Images.load_option list -> oimage
val sub : oimage -> int -> int -> int -> int -> oimage
OCaml

Innovation. Community. Security.