Page 1 of 1

Can I save drawing on TPaintBox control to DXF?

Posted: 06 Sep 2016, 17:50
by marym
I see that your code sample projects use the TImage control. I have an existing project that has a drawing made on a TPaintBox control. How can I save the TPaintBox drawing to DXF?

By the way, I am using C++ (I do not have Delphi).

Thanks in advance for your assistance.

Re: Can I save drawing on TPaintBox control to DXF?

Posted: 06 Sep 2016, 20:25
by support
Hello Mary,

I'm afraid it is not possible, because the TPaintBox control doesn't have a Picture property (TImage has it) that means you can't obtain a TGraphic object for this control. Only TGraphic object and its descendants (TsgCADImage, TsgDWGImage, TsgCADdxfImage, etc.) can be saved to the DXF format.


Mikhail

Re: Can I save drawing on TPaintBox control to DXF?

Posted: 06 Sep 2016, 20:29
by marym
Mikhail,
I suspected that was the case, but I wanted to make sure. Thank you for your prompt reply.
Mary