Stk.ImageSourceImage widget.
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 ... endA 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 ->
imageConvenient 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.