CAD Import VCL and Rotate
Posted: 19 Jul 2006, 16:06
Hi there!
I am using your Example on Rotation from the documentation file. I have somehow translated it to C++ as:
<i>sgDXFImage->Rotate(axisZ,dAngle);
TRect R = Rect(0, 0, sgCADImage->Width, sgCADImage->Height);
sgCADImage->Canvas->StretchDraw(R,sgDXFImage);</i>
The rotation itself works fine, but my problem is that after rotating the image, there is always a part of the image not shown. This means if the width is larger then the height of the image after rotating 90 degrees the upper and lower part of the image is not shown. After rotating another 90 degrees everything is fine. Hope you got an idea of my problem and maybe you can help.
Cheers
Stephan
I am using your Example on Rotation from the documentation file. I have somehow translated it to C++ as:
<i>sgDXFImage->Rotate(axisZ,dAngle);
TRect R = Rect(0, 0, sgCADImage->Width, sgCADImage->Height);
sgCADImage->Canvas->StretchDraw(R,sgDXFImage);</i>
The rotation itself works fine, but my problem is that after rotating the image, there is always a part of the image not shown. This means if the width is larger then the height of the image after rotating 90 degrees the upper and lower part of the image is not shown. After rotating another 90 degrees everything is fine. Hope you got an idea of my problem and maybe you can help.
Cheers
Stephan