Rescale from centre point?

Hi,

I’m scaling nodes and I note that they always scale from the top-left
corner. Is there any way to make the scaling occur from the centre? (Is
this something to do with the node’s spot?)

Basically my node has background image. When I change the background image, I’d like the node to rescale from the centre.

Try setting the GoImage.Alignment to GoObject.Middle.
Then when you set the GoImage.Index or GoImage.Name to change its image, if GoImage.AutoResizes is true, the GoImage’s Size will change automatically, but its Location will remain the same. The GoImage.Alignment property controls where the GoImage.Location is. (The GoObject.Position is always the top-left corner’s coordinates.)

That’s great! It worked perfectly. Thanks