package mm

  1. Overview
  2. Docs
module Color : sig ... end
type t
val width : t -> int
val height : t -> int
val dimensions : t -> int * int
val data : t -> data
val stride : t -> int
val create : int -> int -> t
val make : ?stride:int -> int -> int -> data -> t
val get_pixel : t -> int -> int -> Color.t
val set_pixel : t -> int -> int -> Color.t -> unit
val copy : t -> t
val blit : ?blank:bool -> ?x:int -> ?y:int -> ?w:int -> ?h:int -> t -> t -> unit
val blit_all : t -> t -> unit
val of_RGB24_string : string -> int -> t
val to_RGB24_string : t -> string
val of_BGRA : BGRA.t -> t
val to_BGRA : t -> BGRA.t
val of_YUV420 : YUV420.t -> t
val to_int_image : t -> int array array
val to_BMP : t -> string
val of_PPM : ?alpha:RGB8.Color.t -> string -> t
val swap_rb : t -> unit
val add : ?x:int -> ?y:int -> ?w:int -> ?h:int -> t -> t -> unit
val fill_all : t -> Color.t -> unit
val blank_all : t -> unit
val randomize_all : t -> unit
module Scale : sig ... end
module Effect : sig ... end
module Draw : sig ... end
module Motion : sig ... end
OCaml

Innovation. Community. Security.