Profile Picture

Center Shapes in a NDrawingView

Posted By Fabian Baptista 14 Years Ago
Author
Message
Fabian Baptista
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)

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

Montford Chelliah
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)

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



Fabian Baptista
biggrin Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)

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



Similar Topics


Reading This Topic