skia4delphi and svg

General TRichView support forum. Please post your questions here
Post Reply
standay
Posts: 272
Joined: Fri Jun 18, 2021 3:07 pm

skia4delphi and svg

Post by standay »

I installed skia4delphi and was able to get webp files to insert correctly in a regular richview edit. However, while I can insert svg files just fine, when I save the rvf file and reopen it, all I get is an image with an X in it and the inserted svg file no longer shows. Webp files are working as expected.

Is there some special trick to getting the inserted svg to work? I'm still using rve 21.7.3 so that may be the issue but I wanted to see if anyone has been able to do this.

Thanks

Stan
Sergey Tkachenko
Site Admin
Posts: 17520
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: skia4delphi and svg

Post by Sergey Tkachenko »

This problem is solved in TRichView 22 (you need to include RVSkia unit in your project).

There is a problem with loading SVG from stream using TSkSvgGraphic, because there is no access to this class (it is declared in the private section).
RVSkia unit implements a workaround.
standay
Posts: 272
Joined: Fri Jun 18, 2021 3:07 pm

Re: skia4delphi and svg

Post by standay »

OK, that's what I thought might be the case.

Thanks Sergey
Post Reply