package camlimages

  1. Overview
  2. Docs

Interface of images from this library to images of the Caml Graphics library.

val draw_image : Images.t -> int -> int -> unit

Draw an Images.t value into the graphic window.

val get_image : int -> int -> int -> int -> Rgb24.t

get_image x y w h Capture the contents of a rectangle of the graphic window with lower left corner at x,y, width w and height h

lower interface

val array_of_image : Images.t -> Graphics.color array array

Convert an Images.t value to an array of colors.

val of_image : Images.t -> Graphics.image

Convert an Images.t value to a graphic image.

val image_of : Graphics.image -> Rgb24.t

Convert an Graphics.image value to *our* image

OCaml

Innovation. Community. Security.