3

I'm trying to make a coordinate system with some features in C#. I never worked with C# but think it should be similar to other languages.

I'm not sure which element is suitable for that (Panel,PictureBox,....).

The requirements are:

  • I want zoom in and out
  • move the left/right/down/up there
  • I get values from a microcontroller and want paint them in real time

I'm using Visual Studio 2012. I dont want use other dll/libraries or programms from other people.

Thx

PS:Maybe a simple tutorial would be also great.

4

1 回答 1

3

Canvas我在 WPF 中使用简单的方法做了同样的事情。因此,我建议您将平台更改为 WPF。放大/缩小行为可以使用 a 来完成,ScaleTransform并且向左/向右移动/...可以使用 TranslateTransform 来完成。不需要任何库,您可以使用几何类型 int wpf 例如Path. 并将RenderTransform每条路径的属性设置为这些变换函数。

于 2013-04-18T10:43:45.667 回答