Stk.Image
Image widget.
val keep_ratio : bool Props.prop
Property "image-keep-ratio"
to indicate whether image ratio must be perserved. Default is true
. Keeping ratio means that when width is set with image#set_width, height of rendered image will be set accordingly. If height is set with image#set_height, width or rendered image will be set accordingly.
class image : ?class_:string option -> ?name:string option -> ?props:Props.t option ->
unit -> object ... end
A widget to display an image.
val image :
?class_:string ->
?name:string ->
?props:Props.t ->
?width:int ->
?height:int ->
?keep_ratio:bool ->
?file:string ->
?pack:(Widget.widget -> unit) ->
unit ->
image
Convenient function to create a image
. Optional arguments:
width
specifies width of rendered image.height
specifies height of renderer image.file
specifies a file to load an image from.keep_ratio
specifies the keep_ratio
property.See widget_arguments
for other arguments.