package cairo

  1. Overview
  2. Docs
type format =
  1. | ARGB32
  2. | RGB24
  3. | A8
  4. | A1
val create : format -> width:int -> height:int -> Surface.t
val create_for_data8 : data8 -> format -> ?stride:int -> int -> int -> Surface.t
val create_for_data32 : ?width:int -> ?height:int -> ?alpha:bool -> data32 -> Surface.t
val get_data8 : Surface.t -> data8
val get_data32 : Surface.t -> data32
val get_format : Surface.t -> format
val get_width : Surface.t -> int
val get_height : Surface.t -> int
val get_stride : Surface.t -> int
val output_ppm : Pervasives.out_channel -> ?width:int -> ?height:int -> data32 -> unit
OCaml

Innovation. Community. Security.