2011-04-05 44 views

回答

0

首先從InkCanvas中抓取筆畫。

然後通過在筆畫上調用GetGeometry()從每個筆畫中獲取一個GeometryPath。

之後,你可以use the GeometryPath in a Path animation

如果你想動畫沿着行程鉛筆/畫筆,如果你想鉛筆垂直(或在某一角度)保留對行程你需要一些額外的計算。

+0

現在我得到像例子那樣的MatrixAnimationusingpath,並且讓我想要爲這個問題設置動畫的幾何筆畫是筆畫沒有RenderTransfrom只有Transform屬性,我不知道如何在這個矩陣中使用幾何?請幫忙謝謝 – kartal 2011-04-07 23:51:54

+0

看看http://msdn.microsoft.com/en-us/library/system.windows.media.animation.pointanimationusingpath.aspxthat可能更適合您的需求。有很多... AnimationsUsingPath – 2011-04-08 04:25:38