Exemplo n.º 1
0
 public void AddPoint(int x, int y)
 {
     win32.POINT point = new win32.POINT();
     point.x = x;
     point.y = y;
     AddPoint(point);
 }
Exemplo n.º 2
0
        public win32.POINT[] GetPoints()
        {
            win32.POINT[] points = new win32.POINT[mPointList.Count];

            mPointList.ToArray().CopyTo(points, 0);

            return(points);
        }
Exemplo n.º 3
0
        public static win32.POINT StrToPoint(string sVal)
        {
            win32.POINT rc = new win32.POINT();

            if (sVal != "")
            {
                String[] xy = sVal.Split(',');
                if (xy.Length > 1)
                {
                    if (int.TryParse(xy[0], out rc.x) && int.TryParse(xy[1], out rc.y))
                    {
                        return(rc);
                    }
                }
            }

            return(rc);
        }
Exemplo n.º 4
0
 public void AddPoint(win32.POINT point)
 {
     mPointList.Add(point);
 }