Hi Mikael If my understanding is correct, you're using SpImagePresenter to display a Form. You then have made some changes to the Form and you want to show its new face. Why don't you set the image again in your presenter ? Something like `image image: yourUpdatedForm`. You can even update the Form of your presenter directly like: `image image: (image image pixelValueAt: 10@10 put: (image image pixelValueFor: Color red))` image being an instance of SpImagePresenter. Renaud Mar 7, 2025, 13:53 by mikael.svane@fridhem.org:
I have a Form where I change pixel colours using Form>>pixelValueAt:put:. The Form exists inside an SpImagePresenter. After having changed the pixels, I want to redraw the Form in an #updatePresenters method to show the changes, but I havenât been able to figure out how to do this. If I inspect the Form it is clear that the pixels have been changed, so the problem is in the #updatePresenters mwthod. I have tried different variations on this theme without success:
Â
updatePresenter
                          | canvas |
                          âGet the canvas of the Form:â
                          canvas := imagePresenter image form getCanvas.
                         Â
                          adapter widget drawSubmorphsOn: canvas
Â
Any suggestions would be very welcome.
Â
Kind regards,
Mikael