ImageForm
-
class
compas_rhino.forms.
ImageForm
(*args: Any, **kwargs: Any)[source] Bases:
Eto.Forms.Dialog.
Windows form for displaying images.
- Parameters
image ({str, Image}) – The image that should be displayed. This can be a url of a remote image file, or a local file path, or an instance of
System.Drawing.Image
.title (str, optional) – Title of the form. Default is
ImageForm
.width (int, optional) – Width of the form. Default is
None
.height (int, optional) – Height of the form. Default is
None
.
Examples
>>> from compas_rhino.forms import ImageForm >>> form = ImageForm('http://block.arch.ethz.ch/brg/images/cache/dsc02360_ni-2_cropped_1528706473_624x351.jpg') >>> form.show()
Methods
on_cancel
(sender, e)on_ok
(sender, e)show
()