ImageForm

class compas_rhino.forms.ImageForm(image, title='Image', width=None, height=None)[source]

Bases: compas_rhino.forms.base.BaseForm

A 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

init()

on_form_closed(sender, e)

Inherited Methods

show()

Show the form as a modal dialog.