sfml
Bindings to the SFML multimedia library
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library sfml_graphics
Online documentation for the Image class
val createFromFile : filename:string -> t
val createFromMemory : data:bytes -> t
val createFromPixels : width:int -> height:int -> data:bytes -> t
val createFromPixelsArray : pixels:(int * int * int * int) array array -> t
type input = [
| `Filename of string |
| `Memory of bytes |
| `Color of int * int * SFColor.t |
| `Pixels of int * int * bytes |
| `PixelsArray of (int * int * int * int) array array |
]
val getWidth : image:t -> int
val getHeight : image:t -> int
val getSize : image:t -> int * int
type gl_image =
( int, Bigarray.int8_unsigned_elt, Bigarray.c_layout ) Bigarray.Genarray.t
the same type defined in glMLite
val getPixelsStr : image:t -> string
val getPixelRGB : image:t -> x:int -> y:int -> SFColor.rgb
val getPixelRGBA : image:t -> x:int -> y:int -> SFColor.rgba
val saveToFile : image:t -> filename:string -> unit
val flipHorizontally : image:t -> unit
val flipVertically : image:t -> unit