Hi Renaud,
Yes, I use Spec with the Morphic graphical library and with the calculation
that you described, I got the correct answer for the coordinates within the
Morph representing the image (Form). Because I was using an autoscaling image,
I had then to do one more step by scaling the loca
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
self handleMouseDown: event
image globa…..
].
On 2 Mar 2025, at 22:00, Mikael Svane wrote:
I ha
I have a presenter that is a subclass of SpPresenterWithModel and it
contains, among other things, an ImagePresenter with an autoscaling image (a
Form). I want to capture mouse clicks on the image and get the coordinate of
the click relative to the upper left corner of the Form.
My #initializeP