110,566
社区成员
发帖
与我相关
我的任务
分享
List<Point> pointList = new List<Point>();
//画点或修改点
Point p = new Point();
p.x = 100;
p.y = 200;
p.red = 138;
p.green = 2;
p.blue = 201;
pointList.Add(p);
//查找
protected int getIndex(List<Point> list,int p_x,int p_y)
{
for (int i = 0; i < list.Count; i++)
{
if (list[i].x==p_x && list[i].y==p_y)
{
return i;
}
}
return -1;
}