Group: Forum Members
Last Active: 14 Years Ago
Posts: 18,
Visits: 1
|
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
|
Group: Forum Members
Last Active: 14 Years Ago
Posts: 12,
Visits: 1
|
Hi Fabián, The Zoom method does not accept the NShape object rather it accepts NPointF. Is this method correct? Thanks Anslum
|
Group: Forum Members
Last Active: 14 Years Ago
Posts: 18,
Visits: 1
|
You are right. the correct method is: View.Zoom(1, N.Center);
regards, Fabián
|