网站首页
编程语言
数据库
系统相关
其他分享
编程问答
SvgDocument
2024-08-08
c# svg转Bitmap Bitmap转ImageSource
需要安装nuget包【svg】publicclassSVGHelper{publicstaticImageSourceConvertSvgToDrawingImage(stringpath){varsvgContent=File.ReadAllText(path);//使用SvgDocument解析SVG内容SvgDocumentsvgDoc