This content has been marked as final. Show 2 replies
Short: no, you cannot make x and y centered.
BUT: you can recalculate x and y to center the shape within your container or on screen.
As mentioned by the mod... nope, but it can be calculated.
What I usually do is make my object take care of painting itself, but parameters of convenience for control--graphics context, location, color, scale, and etc... that way I can send the centered coordinates to the object and it can calculate palcement according to scale.