private TransformPoint ( ZedGraph.PointPair points, |
||
points | ZedGraph.PointPair | |
bounds | ||
Результат | Point |
private Point TransformPoint(PointPair points, Size bounds)
{
int X = (int)points.X;
int Y = Math.Abs((int)points.Y - 100);
Y = (int)(Y*(bounds.Height/100f));
X = (int)(X*(bounds.Width/100f));
return new Point(X,Y);
}