package mm

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module BGRA = ImageBGRA
module Color : sig ... end
type t = {
  1. data : data;
  2. width : int;
  3. height : int;
  4. stride : int;
}
val width : t -> int
val height : t -> int
val dimensions : t -> int * int
val data : t -> data
val size : t -> int
val stride : t -> int
val make : ?stride:int -> int -> int -> data -> t
val copy : t -> t
val create : int -> int -> t
val blit_off : t -> t -> int -> int -> bool -> unit
val blit_off_scale : t -> t -> (int * int) -> (int * int) -> bool -> unit
val blit_all : t -> t -> unit
val blit : ?blank:bool -> ?x:int -> ?y:int -> ?w:int -> ?h:int -> t -> t -> unit
val fill_all : t -> Color.t -> unit
val blank_all : t -> unit
val blank : t -> unit
val fill_alpha : t -> int -> unit
val of_RGB24_string : string -> int -> t
val of_BGRA : BGRA.t -> t
val to_BGRA : t -> BGRA.t
val to_Gray8 : t -> ImageBase.Gray8.t -> unit
val to_Gray8_create : t -> ImageBase.Gray8.t
val get_pixel : t -> int -> int -> Color.t
val set_pixel : t -> int -> int -> Color.t -> unit
val get_pixel_rgba : t -> int -> int -> Color.t
val set_pixel_rgba : t -> int -> int -> Color.t -> unit
val randomize_all : t -> unit
val randomize : t -> unit
module Scale : sig ... end
val scale : ?proportional:bool -> t -> t -> unit
val to_BMP : t -> string
val to_RGB24_string : t -> string
exception Invalid_format of string
val of_PPM : ?alpha:(int * int * int) -> string -> t
val to_int_image : t -> int array array
val add_fast : t -> t -> unit
val add_off : t -> t -> int -> int -> unit
val add_off_scale : t -> t -> (int * int) -> (int * int) -> unit
val add : ?x:int -> ?y:int -> ?w:int -> ?h:int -> t -> t -> unit
val swap_rb : t -> unit
module Effect : sig ... end
module Draw : sig ... end
module Motion : sig ... end
OCaml

Innovation. Community. Security.