Go to the first, previous, next, last section, table of contents.


The Graphic_image module

open Image;;

val draw_image : Image.t -> int -> int -> unit;;

Draw an Image.t value into the graphic window.

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

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 : Image.t -> Graphics.color array array;;

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

val of_image : Image.t -> Graphics.image;;

Convert an Image.t value to a graphic image.

val image_of : Graphics.image -> Rgb24.t

Convert an Graphics.image value to *our* image


Go to the first, previous, next, last section, table of contents.