Screen To Image
Moderators: SDS, support, admin
Screen To Image
Hi,
Dxfimage::TsgDXFImage *FImg;
You are converting an Image Point by using FImg->GetPoint(Point) to Drawing Coordinates. What I need is the other way around. How can I get the Image Coordinates from a given Drawing Point.
Thanks
Aby
Dxfimage::TsgDXFImage *FImg;
You are converting an Image Point by using FImg->GetPoint(Point) to Drawing Coordinates. What I need is the other way around. How can I get the Image Coordinates from a given Drawing Point.
Thanks
Aby
Hello Aby,
Function TsgDXFImage.GetPoint - transforms point in three-dimensional coordinate system into point in two-dimensional coordinate system, i.e. CAD point to screen point.
Function TsgDrawingNavigator.GetDrawingCoords - transforms drawing's point respectively to the controls' coordinates.
Sergey.
Please post questions to the forum or write to support@cadsofttools.com
Function TsgDXFImage.GetPoint - transforms point in three-dimensional coordinate system into point in two-dimensional coordinate system, i.e. CAD point to screen point.
Function TsgDrawingNavigator.GetDrawingCoords - transforms drawing's point respectively to the controls' coordinates.
Sergey.
Please post questions to the forum or write to support@cadsofttools.com
Hi Sergey,
I'm trying to convert and modify the Editor example according to my taste. There is no TsgDrawingNavigator object in this example.
The following has been taken from your help file.
"Component TsgDrawingNavigator is intended for displaying files of various graphic format. It descends from TsgCustomControl."
Why don't you define this object in this example, which object is displaying this file, when and how am I going to instantinate this class (in C++).
Can I suggest something for the user communities. Why don't you document this informations on Wikipedia. It will be marvellous if every body can document their experiences. [:)]
Aby
I'm trying to convert and modify the Editor example according to my taste. There is no TsgDrawingNavigator object in this example.
The following has been taken from your help file.
"Component TsgDrawingNavigator is intended for displaying files of various graphic format. It descends from TsgCustomControl."
Why don't you define this object in this example, which object is displaying this file, when and how am I going to instantinate this class (in C++).
Can I suggest something for the user communities. Why don't you document this informations on Wikipedia. It will be marvellous if every body can document their experiences. [:)]
Aby
Hi Aby,
Please download the following package: http://www.cadsofttools.com/download/Template_BCB.zip
It contains a demo how to use TsgDrawingNavigator in C++ Builder.
Sergey.
Please post questions to the forum or write to support@cadsofttools.com
Please download the following package: http://www.cadsofttools.com/download/Template_BCB.zip
It contains a demo how to use TsgDrawingNavigator in C++ Builder.
Sergey.
Please post questions to the forum or write to support@cadsofttools.com