Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Zoom using the cursor on a graph using a pointF from an IntensityCursor.Xposition and IntensityCursor.Yposition.

I am trying to use an intensityGraph1.ZoomAroundPoint(1.5F, pointf ) to Zoom from the point where the intensity cursor sits.

How can I convert my cursor X,Y to a poinfF type? I tried the following but the zoom was not of cursors crosshairs.

I am using Measurement Studio 2013 in C#

 

  Point point = new Point((int)intensityCursor.XPosition, (int)intensityCursor.YPosition);

  pointf = intensityGraph.PointToVirtual(point);

  intensityGraph1.ZoomAroundPoint(1.5F, pointf );

 

Thanks,

Bill D.

 

0 Kudos
Message 1 of 2
(5,431 Views)

Hello Bill,

 

I'd recommend you to customize your mouse cursor. Please take a look to this article:

 

Mouse Cursor Customizability with Measurement Studio Windows Forms .NET Controls

 

Regards,

 

Carmen C

0 Kudos
Message 2 of 2
(5,408 Views)