package bimage-unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Stb contains image I/O operationgs using stb_image

val read_u8 : 'a Bimage.Color.t -> string -> ((int, Bimage.u8, 'a) Bimage.Image.t, Bimage.Error.t) result
val read_u8_from_memory : 'a Bimage.Color.t -> bytes -> ((int, Bimage.u8, 'a) Bimage.Image.t, Bimage.Error.t) result
val read_u16 : 'a Bimage.Color.t -> string -> ((int, Bimage.u16, 'a) Bimage.Image.t, Bimage.Error.t) result
val read_u16_from_memory : 'a Bimage.Color.t -> bytes -> ((int, Bimage.u16, 'a) Bimage.Image.t, Bimage.Error.t) result
val read_f32 : 'a Bimage.Color.t -> string -> ((float, Bimage.f32, 'a) Bimage.Image.t, Bimage.Error.t) result
val read_f32_from_memory : 'a Bimage.Color.t -> bytes -> ((float, Bimage.f32, 'a) Bimage.Image.t, Bimage.Error.t) result
val read : ('a, 'b) Bimage.Type.t -> 'c Bimage.Color.t -> string -> (('a, 'b, 'c) Bimage.Image.t, Bimage.Error.t) result
val read_from_memory : ('a, 'b) Bimage.Type.t -> 'c Bimage.Color.t -> bytes -> (('a, 'b, 'c) Bimage.Image.t, Bimage.Error.t) result
val write_png : string -> (int, Bimage.u8, 'c) Bimage.Image.t -> (unit, Bimage.Error.t) result
val write_jpg : ?quality:int -> string -> (int, Bimage.u8, 'c) Bimage.Image.t -> (unit, Bimage.Error.t) result
val write_hdr : string -> (float, Bimage.f32, 'c) Bimage.Image.t -> (unit, Bimage.Error.t) result
val write : string -> ('a, 'b, 'c) Bimage.Image.t -> (unit, Bimage.Error.t) result
OCaml

Innovation. Community. Security.