Forum > FPvectorial
FPvectorial "Unsupported vector graphics"
Edson:
Hi.
Triying to show a simple SVG file, using:
--- Code: ---procedure TForm1.Button1Click(Sender: TObject);
var
Vec: TvVectorialDocument;
begin
Vec := TvVectorialDocument.Create;
try
Vec.ReadFromFile('d:\triac.svg');
Vec.GetPage(0).DrawBackground(Image1.Canvas);
Vec.GetPage(0).Render(
Image1.Canvas, 0, Image1.Height, 1, -1);
Image1.Invalidate;
finally
Vec.Free;
end;
end;
--- End code ---
And I get the error: "Unsupported vector graphics".
How do I know what formats are supported by FPvectorial?
Thanks.
felipemdc:
Use fpvectorial from Lazarus SVN, svg is supported: http://wiki.lazarus.freepascal.org/Getting_Lazarus#Getting_SVN
Edson:
Testing with the SVN version. The same error.
I have used 4 or 5 different SVG files (all of them can be correctly shown on the browser) with no success.
wp:
Please post these svg files here. FPVectorial does not claim to be able to read all files.
Do you have the svgvectorialreader in the uses clause?
Edson:
This is my sample project. Maybe I'm doing something wrong.
Navigation
[0] Message Index
[#] Next page