2013-05-28 19 views

回答

0

我真的不明白這個問題;您可以輕鬆遍歷所有筆劃並訪問X和Y值。下面是一段示例代碼,改變所有招入行:

for(int i=0;i<INKCanvas1.Strokes.Count;i++) 
{ 
    for(int j=0;j<INKCanvas1.Strokes[i].StylusPoints.Count;j++) 
    { 
     // since StylusPoint[j] is returning a reference to 
     // a struct you need to set it to a variable 
     var y = INKCanvas1.Strokes[i].StylusPoint[j].Y; 

     //Set it to x=200 and y= stroke y value 
     INKCanvas1.Strokes[i].StylusPoint[j] = new StylusPoint(200,y) 


    } 
} 

欲瞭解更多信息讀取StylusPointStylusPointCollection的文檔。

+0

謝謝! 看來我在這工作太久了...... – Mike

+0

不客氣!請將問題標記爲已回答。 – dsfgsho