Module Bimage_unix.Stb

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