package stk

  1. Overview
  2. Docs

A widget to display an image.

Properties

method width : int option
method set_width : int -> unit
method height : int option
method set_height : int -> unit
method keep_ratio : bool
method set_keep_ratio : bool -> unit
method image_size : (int * int) option

Returns orignal (width, height) of image, if an image is loaded.

method load_rw : Tsdl.Sdl.rw_ops -> unit

Load image from rw operations. Beware that this may be a io-blocking operation.

method load_file : string -> unit

Load image from file. Beware that this is a io-blocking operation.

OCaml

Innovation. Community. Security.