[Message Deleted]
-
Point[] points = (Point[])list.ToArray(typeof(Point));
If you can use .NET 2.0 and higher, then I suggest replacing
ArrayList
by the typesafe List<T> class, like this:List<Point> list = new List<Point>();
list.Add(new Point(0, 0)); // add some pointsPoint[] points = list.ToArray();
regards
-
Point[] points = (Point[])list.ToArray(typeof(Point));
If you can use .NET 2.0 and higher, then I suggest replacing
ArrayList
by the typesafe List<T> class, like this:List<Point> list = new List<Point>();
list.Add(new Point(0, 0)); // add some pointsPoint[] points = list.ToArray();
regards
-
Get a Graphics object from the image, then you can draw with the graphics object:
Graphics g = Graphics.FromImage(pictureBox1.Image); // image from a picture box, but can be loaded from anywhere
g.DrawXXX();regards