Coordinate system in c #

I am trying to create a coordinate system with some functions in C #. I have never worked with C #, but I think that it should be similar to other languages.

I am not sure which element is suitable for this (Panel, PictureBox, ....).

Requirements:

  • I want to zoom in and out
  • move left / right / down / up there
  • I get the values ​​from the microcontroller and want to draw them in real time.

I am using Visual Studio 2012. I do not want to use other dlls / libraries or programs from other people.

thanks

PS: Maybe a simple tutorial will also be great.

+4
source share
1 answer

I did the same using a simple Canvas in WPF. Therefore, I suggest you change your platform to WPF. Scaling / deleting can be done using ScaleTransform and moving left / right / ... can be done using TranslateTransform. There is no need for any library, you can use int wpf geometry types such as Path . And set the RenderTransform property for each path to these conversion functions.

+4
source

All Articles