Display SVG in TImage

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: admin, support, SDS

Post Reply
radiolondra
Posts: 2
Joined: 04 Feb 2016, 17:06

Display SVG in TImage

Post by radiolondra » 04 Feb 2016, 17:16

Hi,

I'm pretty new in Delphi and CAD VCL.

I'm trying to simply display an SVG file into a Delphi 2009 TImage. The TImage has Stretched property set to True and it is aligned all client (into a TPanel) and I wish to have the SVG stretched into the all client TImage.

I used the following code:

Code: Select all

VectorImg.Picture.LoadFromFile(s);
but the SVG is not aligned alClient (it just covers a small rectangle into the TImage).

Can you help me?
Thanks

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Display SVG in TImage

Post by support » 05 Feb 2016, 11:10

Hello,

You are doing it the right way. When TImage.Stretched is set to True, the displayed SVG image should be aligned to a client TImage.

Could you specify CAD VCL version you are using? We could test this issue.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

radiolondra
Posts: 2
Joined: 04 Feb 2016, 17:06

Re: Display SVG in TImage

Post by radiolondra » 12 Feb 2016, 16:37

It should be a trial version 10. The SVG image is still shown into a small rectangle, even if the TImage has Stretch=True.
I tried with several different SVG file, but the result is still the same.
Any idea?

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Display SVG in TImage

Post by support » 12 Feb 2016, 18:21

Hello,

SVG images are shown stretched when using CADVCL 10.1 Demo package and TImage.Stretch = True. I suggest to send one of your SVG files to the Technical Support e-mail for testing this problem.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply