package stb_image

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type !'a result = ('a, [ `Msg of string ]) Result.result
type 'c buffer = ('a, 'b, Bigarray.c_layout) Bigarray.Array1.t constraint 'c = ('a, 'b) Bigarray.kind
type float32 = (float, Bigarray.float32_elt) Bigarray.kind
type !'a t = private {
  1. width : int;
  2. height : int;
  3. channels : int;
  4. offset : int;
  5. stride : int;
  6. data : 'a buffer;
} constraint 'a = ('b, 'c) Bigarray.kind
val image : width:int -> height:int -> channels:int -> ?offset:int -> ?stride:int -> ('a, 'b) Bigarray.kind buffer -> ('a, 'b) Bigarray.kind t result
val width : ('a, 'b) Bigarray.kind t -> int
val height : ('a, 'b) Bigarray.kind t -> int
val channels : ('a, 'b) Bigarray.kind t -> int
val data : ('a, 'b) Bigarray.kind t -> ('a, 'b) Bigarray.kind buffer
val load : ?channels:int -> string -> int8 t result
val loadf : ?channels:int -> string -> float32 t result
val decode : ?channels:int -> ('a, 'b) Bigarray.kind buffer -> int8 t result
val decodef : ?channels:int -> ('a, 'b) Bigarray.kind buffer -> float32 t result
val load_unmanaged : ?channels:int -> string -> int8 t result
val loadf_unmanaged : ?channels:int -> string -> float32 t result
val decode_unmanaged : ?channels:int -> ('a, 'b) Bigarray.kind buffer -> int8 t result
val decodef_unmanaged : ?channels:int -> ('a, 'b) Bigarray.kind buffer -> float32 t result
val free_unmanaged : ('a, 'b) Bigarray.kind t -> unit
val mipmap : int8 t -> int8 t -> unit
val mipmapf : float32 t -> float32 t -> unit
val vflip : int8 t -> unit
val vflipf : float32 t -> unit
val expblur : int8 t -> radius:float -> unit
OCaml

Innovation. Community. Security.