【发布时间】:2023-03-26 07:36:01
【问题描述】:
我在 C# 中为 Direct2D 使用 SharpDX。
对于 SVG,我发现 SharpDX 支持它:https://github.com/sharpdx/SharpDX/pull/954/files#diff-ab708c02d6344a22d99b1c932b72cc12
如何渲染 SVG 图形?
【问题讨论】:
-
自 Windows Creators Update 以来,Direct2D 支持 SVG 图像(文档):msdn.microsoft.com/en-us/library/windows/desktop/mt790715.aspx 到 ID2D1DeviceContext5(我相信 SharpDX 术语中的 DeviceContext5)
-
@SimonMourier 感谢您的链接。最近几天我正在搜索,实际上没有这方面的例子:(
-
您如何看待样本?您是否有一个可以在其中看到它的应用程序骨架?
-
@SimonMourier 是的,我使用他们 github 存储库 (github.com/sharpdx/SharpDX-Samples) 中的示例骨架
-
究竟是哪一个?