QPainterImage¶
- MacroModule¶
author
package
definition
Purpose¶
The QPainterImage allows for creating a 2D image onto which the user can paint using Python and a QPainter.
Windows¶
Default Panel¶
Parameter Fields¶
Visible Fields¶
Width¶
- name: width, type: Integer, default: 1, minimum: 1¶
Sets the width of the image.
Height¶
- name: height, type: Integer, default: 1, minimum: 1¶
Sets the height of the image.
Update¶
- name: update, type: Trigger¶
When pressed, the image is updated.
Script¶
- name: script, type: String¶
Sets 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