예제 #1
0
        private void DrawStars()
        {
            if (starpositions == null)
            {
                starpositions = SystemClassDB.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);
                    }
                }
        }
예제 #2
0
        private void DrawStars()
        {
            Cursor.Current = Cursors.WaitCursor;

            if (starpositions == null)
            {
                starpositions = SystemClassDB.GetStarPositions(25);     // limit to 25%
            }
            using (Pen pen = new Pen(Color.White, 2))
                using (Graphics gfx = Graphics.FromImage(imageViewer.Image))
                {
                    foreach (Point3D si in starpositions)
                    {
                        DrawPoint(gfx, pen, si.X, si.Z);
                    }
                }

            Cursor.Current = Cursors.Default;
        }