Is there a way to render SVG in Windows Forms?

后端 未结 5 681
被撕碎了的回忆
被撕碎了的回忆 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:45

    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)"
    

    You can also try SVG Icon Builder. Please refer the following link to know more about that

    How To: Draw and Use SVG Images

提交回复
热议问题