Exemplo n.º 1
0
        private void DrawPipeVerticalSection(List <VerticalPoint> listVertiPnts, string mapNum, string mapName, double totalLength)
        {
            if (listVertiPnts == null)
            {
                return;
            }
            Bitmap   bmp   = new Bitmap(1366, 600);
            Graphics g_bmp = Graphics.FromImage(bmp);

            g_bmp.Clear(Color.Wheat);
            if (g_bmp != null)
            {
                Draw(g_bmp, bmp.Width, bmp.Height, listVertiPnts, mapNum, mapName, totalLength);
                bmp.Save("E:\\1.bmp");
                FrmPipeTransection2D dialog = new FrmPipeTransection2D(bmp);
                dialog.Show();
                WaitForm.Stop();
            }
        }
Exemplo n.º 2
0
        private void DrawPipeTransection(List <IntersectPoint> listInterPnts, double length)
        {
            if (listInterPnts.Count < 2 || listInterPnts == null)
            {
                return;
            }
            Bitmap   bmp   = new Bitmap(1366, 600);
            Graphics g_bmp = Graphics.FromImage(bmp);

            g_bmp.Clear(Color.Wheat);
            if (g_bmp != null)
            {
                Draw(g_bmp, bmp.Width, bmp.Height, listInterPnts, length);
                bmp.Save("E:\\1.bmp");
                FrmPipeTransection2D dialog = new FrmPipeTransection2D(bmp);
                dialog.Show();
                WaitForm.Stop();
            }
        }