zedgraphcontrol坐标系里怎么获取鼠标坐标?
zedgraphcontrol坐标系里怎么获取鼠标坐标?利用mousedown事件是鼠标左键坐标获取的是zedgraph的控件坐标,而不是我自定义的坐标系,怎么鼠标在控件中的坐标转换到自定义坐标系里?
private float x3 = 0;
private float y3 = 0;
private float x4 = 0;
private float y4 = 0;
private bool ZedGraphControl4_MouseDownEvent(ZedGraph.ZedGraphControl sender, MouseEventArgs e)
{
x3 = 0;
y3 = 0;
x4 = 0;
y4 = 0;
zedGraphControl4.IsEnableZoom = true;
x3 = e.X;
y3 = e.Y;
return default(bool);
}
private bool ZedGraphControl4_MouseUpEvent(ZedGraph.ZedGraphControl sender, MouseEventArgs e)
{
if (checkBox13.Checked)
{
zedGraphControl4.IsEnableZoom = true;
}
else
{
zedGraphControl4.IsEnableZoom = false;
x4 = e.X - x3;
y4 = e.Y - y3;
}
return default(bool);
}
private bool ZedGraphControl4_MouseMoveEvent(ZedGraph.ZedGraphControl sender, MouseEventArgs e)