How to draw shapes in WP7 with the finger?

2019-05-10 01:03发布

How to draw shapes in WP7 with the finger? I am trying to implement a simple paint application but I am not sure how to make the drawing.

3条回答
欢心
2楼-- · 2019-05-10 01:41

There are two examples for you, you can download it from the below links.

Sample Project 1

Sample Project 2

查看更多
【Aperson】
3楼-- · 2019-05-10 01:42

fingerpaint is your friend

FingerPaint

Note that the two sets of code aren't quite the same - the C# fingerpaint had some issues about drawing new tracks on top of old ones so I modified this when I wrote the Ruby one.

Also note that to take this further, you should probably support multitouch.

查看更多
仙女界的扛把子
4楼-- · 2019-05-10 01:43

Line Handle the StylusDown, StylusMove, and StylusUp events. Draw lines as appropriate depending on if you want straight vs. free form lines.

查看更多
登录 后发表回答