private void DrawStars() { if (starpositions == null) { starpositions = SystemClass.GetStarPositions(); } using (Pen pen = new Pen(Color.White, 2)) using (Graphics gfx = Graphics.FromImage(imageViewer1.Image)) { foreach (Point3D si in starpositions) { DrawPoint(gfx, pen, si.X, si.Z); } } }