Page 1 of 1

skia4delphi and svg

Posted: Sat Apr 20, 2024 6:52 pm
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

Re: skia4delphi and svg

Posted: Sat Apr 20, 2024 9:07 pm
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.

Re: skia4delphi and svg

Posted: Sat Apr 20, 2024 9:09 pm
by standay
OK, that's what I thought might be the case.

Thanks Sergey