Page 1 of 1

Display SVG in TImage

Posted: 04 Feb 2016, 17:16
by radiolondra
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

Re: Display SVG in TImage

Posted: 05 Feb 2016, 11:10
by support
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

Re: Display SVG in TImage

Posted: 12 Feb 2016, 16:37
by radiolondra
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?

Re: Display SVG in TImage

Posted: 12 Feb 2016, 18:21
by support
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