下面给出重绘的程序:
- private void ReDrawAll() {
- renderGrid(); Graphics g = this.panel1.CreateGraphics();
- g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; GObject CurrObj = new GObject();
- Rectangle Rct = new Rectangle(); Pen p = new Pen(Color.Black);
- //p.Width = 2; p.Width = __penWidth * __zoomTimes;
- Image ObjImg;
- int xm = 0; int ym = 0;
- int _maxX = 0;
- int _maxY = 0; int _minX = 0;
- int _minY = 0; int _oldW = this.panel1.Width;
- int _oldH = this.panel1.Height;
- string IsLine = ""; //Nobj==50为当前画布最大的对象个数
- for (int i = 0; i < GNetworkFlow.Nobj; i++) {
- CurrObj = GNetworkFlow.GObjects[i]; //当前对象类型判断










