QPainterImage

MacroModule
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition QPainterImage.def

Purpose

The QPainterImage allows to create a 2D image onto which the user can paint using Python and a QPainter.

Windows

Default Panel

../../../Modules/Macros/Helpers/mhelp/Images/Screenshots/QPainterImage._default.png

Parameter Fields

Visible Fields

Width

name: width, type: Integer, default: 1, minimum: 1

The width of the image.

Height

name: height, type: Integer, default: 1, minimum: 1

The height of the image.

Update

name: update, type: Trigger

If pressed the image is updated.

Script

name: script, type: String

This contains the Python script. The following variables are available:

  • painter - a QPainter
  • image - the QImage onto which the painter paints
  • width - the width of the image
  • height - the height of the image
  • ctx - the parent context of the network that the module is in