本文整理汇总了C#中ZedGraph.GraphPane.GeneralTransform方法的典型用法代码示例。如果您正苦于以下问题:C# GraphPane.GeneralTransform方法的具体用法?C# GraphPane.GeneralTransform怎么用?C# GraphPane.GeneralTransform使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ZedGraph.GraphPane
的用法示例。
在下文中一共展示了GraphPane.GeneralTransform方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: zedGraphControl1_PointValueEvent
string zedGraphControl1_PointValueEvent(ZedGraphControl sender, GraphPane pane, CurveItem curve, int iPt)
{
if (curve[iPt] != ppHover)
{
ppHover = curve[iPt];
if (pictureBox1.Visible)
{
pictureBox1.Visible = false;
}
if (curve.Label.Text == "photos")
{
PointF pf = pane.GeneralTransform(curve[iPt].X, curve[iPt].Y, CoordType.AxisXYScale);
string[] split = curve[iPt].Tag.ToString().Split(',');
pictureBox1.Image = Image.FromFile(split[1]);
pictureBox1.Location = new Point(Convert.ToInt32(pf.X), Convert.ToInt32(pf.Y) - pictureBox1.Height);
pictureBox1.BringToFront();
pictureBox1.Visible = true;
return split[0];
}
else if (curve.Label.Text.StartsWith("Anno"))
{
HighlightGraphs(curve[iPt].Z, curve[iPt].X - curve[iPt].Z);
}
}
else if (curve.Label.Text == "photos")
{
string[] split = curve[iPt].Tag.ToString().Split(',');
return split[0];
}
if (curve[iPt].Tag != null)
return curve[iPt].Tag.ToString();
else return curve[iPt].ToString();
}
示例2: SafeTransform
internal PointF SafeTransform(PointD pt, GraphPane pane, CoordType coord)
{
PointF pixPt = new PointF();
if (pt.X != 0) // for first point
pixPt = pane.GeneralTransform(pt.X, pt.Y, coord);
return pixPt;
}