Is there a way to render SVG in Windows Forms?

后端 未结 5 712
被撕碎了的回忆
被撕碎了的回忆 2021-02-13 01:37

I am working with a library that renders part of its state as an SVG document.

I would like to render this in either a Windows Forms or a WPF environment. Is there curre

5条回答
  •  时光取名叫无心
    2021-02-13 01:48

    If you are using the webbrowser control for SVG, you will have a problem with Access Violation due to Data Execution Prevention.

    The workaround is to have the following lines in your post-build events

    call "$(DevEnvDir)..\..\VC\bin\vcvars32.bat"
    call "$(DevEnvDir)..\..\VC\bin\editbin.exe" /NXCOMPAT:NO "$(TargetPath)"
    

    For additional information see this link.

提交回复
热议问题