本文整理匯總了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;
}