fsleyes_widgets.imagepanel¶
This module provides the ImagePanel class, for displaying a
wx.Image.
-
class
fsleyes_widgets.imagepanel.ImagePanel(parent, image=None, preserveAspect=False)[source]¶ Bases:
wx._core.PanelA
wx.Panelwhich may be used to display a resizeablewx.Image. The image is scaled to the size of the panel.Create an
ImagePanel.If the
imageis not passed in here, it can be set later with theSetImage()method.- Parameters
parent – The
wxparent object.image – The
wx.Imageobject to display.preserveAspect – Defaults to
False. IfTrue, the image aspect ratio is preserved.