Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Image widget
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.