package bogue

  1. Overview
  2. Docs

Image widget

Dependency graph

type t
val create : ?width:int -> ?height:int -> ?noscale:bool -> ?bg:Draw.color -> string -> t

create "image.jpg" will load the image "image.jpg" (using the path Theme.get_path "image.jpg"). The actual load occurs only once, on the first time the image widget is effectively displayed. The image is then stored in a texture. All Sdl_image image formats are supported.

val create_from_svg : ?width:int -> ?height:int -> ?bg:Draw.color -> string -> t

Load an svg image. This requires the rsvg program.

OCaml

Innovation. Community. Security.