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.
Property "image-autosize" to indicate whether image must fit in allocated geometry. Default is false.
class image : ?classes:string list option -> ?name:string option -> ?props:Props.t option -> ?wdata:
Widget.wdata
option -> unit -> object ... endA widget to display an image.
val image :
?classes:string list ->
?name:string ->
?props:Props.t ->
?wdata:Widget.wdata ->
?width:int ->
?height:int ->
?keep_ratio:bool ->
?autosize: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.autosize specifies the autosize property.See Widget arguments for other arguments.