hi,
I have an AutoCAD drawing in a cadpictbox and I want to center it in a point (expressed in the coordinates of the AutoCAD drawing).
How can I do?
thanks,
lulu.
coordinates convertion
Moderators: SDS, support, admin
Re: coordinates convertion
Hello.
CADImage.Draw method visualizes RectangleF object that represents an area of the CAD image. You need recalculate required center point from drawing coordinates to screen coordinates and fill RectangleF structure in consideration of scale. Please see the ResetScaling method within Viewer demo code as the example.
Alexander.
CADImage.Draw method visualizes RectangleF object that represents an area of the CAD image. You need recalculate required center point from drawing coordinates to screen coordinates and fill RectangleF structure in consideration of scale. Please see the ResetScaling method within Viewer demo code as the example.
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: coordinates convertion
Hello,
thank you for your reply,
but I would want to know if there are a method for the coordinates conversion that I need...
thank you for your reply,
but I would want to know if there are a method for the coordinates conversion that I need...
Re: coordinates convertion
Hello.
There is no any method that center drawing in a point with some zoom level. Such task can be completed within your own application using example from Viewer demo. If you meant method for conversion from drawing to screen coordinates then use CADImage.GetPoint method.
Alexander.
There is no any method that center drawing in a point with some zoom level. Such task can be completed within your own application using example from Viewer demo. If you meant method for conversion from drawing to screen coordinates then use CADImage.GetPoint method.
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support