ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImportFromFileSVG
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

924 Posts

Posted - Dec 13 2023 :  05:46:22  Show Profile  Reply
Using Vcl.Skia in Delphi 12: When trying to load a VALID SVG file with no SVG extension, the file is not loaded:

ImageEnView1.IO.ImportFromFileSVG('C:\DELPHI\MySvgFile', 1000, -1, True);


It seems the ImportFromFileSVG function explicitly relies on the SVG extension of the file without checking the content of the file.

Is this intentional? Other image file types can be loaded without the explicit need for a specific file extension.

xequte

38528 Posts

Posted - Dec 14 2023 :  14:06:38  Show Profile  Reply
Hi Peter

That is because the VCL TPicture code requires the extension.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: