solved the problem the answer is
List<Point> points = new List<Point>();
for (int i = 0; i < points.Count; i++)
{
Point point = points[i];
Point pointx = points[i];
Color pixelColor = img.SetPixel(point.X, pointx.Y);