Nevron Forum

Center Shapes in a NDrawingView

https://www.nevron.com/Forum/Topic3394.aspx

By Fabian Baptista 1 - Wednesday, April 21, 2010

I Found this easy way to center a shape in a View.
I want to share it with other people.

With a NDrawingView V and a NShape N (the shape to center in V)

V.Zoom(1, N);

Regards,
Fabián
By Montford Chelliah - Wednesday, May 19, 2010

Hi Fabián,

The Zoom method does not accept the NShape object rather it accepts NPointF. Is this method correct?

Thanks

Anslum

By Fabian Baptista 1 - Tuesday, July 20, 2010

You are right.
the correct method is:
View.Zoom(1, N.Center);

regards,
Fabián