Using Mini Path Language to create my PathGeometries ?
-
2012年5月18日 12:04
I'm a newbie when it comes to Direct2D so apologies upfront if this question sounds stupid..
I'm using Expression Design to create some really nice vector assets, they're actually Path's and I can easily get the mini-path-language data for these assets.
Does anyone know if it's possible to create my Direct2D PathGeometries from this mini-path-language data assets?
I'm dreading that the answer is no and that I have to create my complex D2D PathGeometries using lots of D2D1_Points, which honestly will take me ages.. (i.e. if I need to create my pathGeometries like this http://msdn.microsoft.com/en-us/library/windows/desktop/ee264309(v=vs.85).aspx its going to take forever :( )
Anyway any advice would be great either way!
Make the web a beautiful place
すべての返信
-
2012年5月20日 1:26
I solved this by creating a converter myself that turns mini-path-language to a Direct2D PathGeometry. I had help from an existing Silverlight geometry converter, that I tweaked ..
I have a demo and the sample code here for those interested :
Make the web a beautiful place
- 回答としてマーク Jose Fajardo IIIMVP 2012年5月20日 1:26
-
2012年5月21日 7:24モデレータ
Thanks for sharing the solution.
Best regards,
Jesse
Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us

