Beispiel #1
0
        private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
        {
            List <Object> WorldCam = new List <Object>();

            for (int i = 0; i < World.Count; i++)
            {
                WorldCam.Add(ConvertCoordinate.ConvertWorldtoCam(VzgladCam, LocationCam, World[i]));
            }
            Object SunO = new Object();

            SunO.Points.Add(Sun);
            Object     SunOC   = ConvertCoordinate.ConvertWorldtoCam(VzgladCam, LocationCam, SunO);
            TrasirLuch TRrLuch = new TrasirLuch(WorldCam, SunOC.Points[0], ColSun, focus, mash, pictureBox1.Width, pictureBox1.Height);

            TRrLuch.Luch(e.X, e.Y);
        }
Beispiel #2
0
        private void закраситьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <Object> WorldCam = new List <Object>();

            for (int i = 0; i < World.Count; i++)
            {
                WorldCam.Add(ConvertCoordinate.ConvertWorldtoCam(VzgladCam, LocationCam, World[i]));
            }
            Object SunO = new Object();

            SunO.Points.Add(Sun);
            Object     SunOC   = ConvertCoordinate.ConvertWorldtoCam(VzgladCam, LocationCam, SunO);
            TrasirLuch TRrLuch = new TrasirLuch(WorldCam, SunOC.Points[0], ColSun, focus, mash, pictureBox1.Width, pictureBox1.Height);

            TRrLuch.ImageBDraw(35);
            pictureBox1.Image = TRrLuch.GetBitmap();
        }