I’m trying to display a scaled image in a canvas. I found several code examples on the forum and used them (thank you for sharing, by the way).
Here is the problem I meet:
When I display the “raw” image (not scaled), everything works fine.
When I change my code to scale the image, the image is indeed scaled and displayed BUT the repaint() method is called continuously.
See Attached Code.
When I use the very last line of the code, the repaint() method is only called once. (Only 1 “repaint” line in console)
When I use the line before instead, the method is looping. (Console filled with “repaint” lines)
Is there a way to avoid this looping behavior ?
Ignition version 7.8.2
The code is joined in a file because it seems that submitting it in the message body makes the forum crash.