Esempio n. 1
0
 public CCLBackground(Graphics gph_Map, int int_Width, int int_Height)
 {
     this.m_gph_Map          = gph_Map;
     this.m_int_Height       = int_Height;
     this.m_int_Width        = int_Width;
     this.m_clg_Lines        = new CCLLineGroup(this.m_gph_Map);
     this.m_clg_Lines.Margin = this.m_int_Margin;
 }
Esempio n. 2
0
 /// <summary>
 /// 调整宽高度
 /// </summary>
 /// <param name="int_Height"></param>
 /// <param name="int_Width"></param>
 private void ChangeSize(int int_Height, int int_Width)
 {
     this.m_int_Height     = int_Height;
     this.m_int_Width      = int_Width;
     this.m_btp_VectorMap  = new Bitmap(int_Width, int_Height);
     this.m_gph_Map        = Graphics.FromImage(this.m_btp_VectorMap);
     this.m_cld_Background = new CCLBackground(this.m_gph_Map, this.m_int_Width, this.m_int_Height);
     this.m_clg_Lines      = new CCLLineGroup(this.m_gph_Map);
     //this.Draw();
 }
Esempio n. 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="pic_PicMap"></param>
        public CCLCurve(System.Windows.Forms.PictureBox pic_PicMap)
        {
            this.m_pic_PicMap = pic_PicMap;
            this.m_int_Height = this.m_pic_PicMap.Height;
            this.m_int_Width  = this.m_pic_PicMap.Width;

            this.m_btp_VectorMap         = new Bitmap(this.m_int_Width, this.m_int_Height);
            this.m_gph_Map               = Graphics.FromImage(this.m_btp_VectorMap);
            this.m_cld_Background        = new CCLBackground(this.m_gph_Map, this.m_int_Width, this.m_int_Height);
            this.m_clg_Lines             = new CCLLineGroup(this.m_gph_Map);
            this.m_clg_Lines.Margin      = this.m_int_Margin;
            this.m_cld_Background.Margin = this.m_int_Margin;
        }
Esempio n. 4
0
        /// <summary>
        /// »­±³¾°
        /// </summary>
        public void Draw()
        {
            this.m_gph_Map.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
            Pen pen_DrawPen = new Pen(this.m_LineColor, 1);

            pen_DrawPen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot;
            this.m_gph_Map.Clear(this.m_BackColor);
            this.m_clg_Lines        = new CCLLineGroup(this.m_gph_Map);
            this.m_clg_Lines.Margin = this.m_int_Margin;

            Rectangle rcl_MapArec = new Rectangle(0, this.m_int_Margin, this.m_int_Width - this.m_int_Margin * 2, this.m_int_Height - this.m_int_Margin * 2);

            //this.m_gph_Map.DrawRectangle(pen_DrawPen, rcl_MapArec);
            DrawXAxis(this.m_gph_Map, pen_DrawPen, rcl_MapArec, this.m_enm_AxisType);
            DrawYAxis(this.m_gph_Map, pen_DrawPen, rcl_MapArec, this.m_enm_AxisType);
            this.m_clg_Lines.DrawLines();
        }