lixiaojun
2024-08-16 2779e00649911e53903b7ff15c55eae9cfda6333
WinFrmUI/Yw.WinFrmUI.Hydro.L2d.Core/ImageInfo/PictureLineInfo.cs
@@ -12,13 +12,15 @@
        public PictureLineInfo(PictureLineInfo rhs)
        {
            #region base
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.AllowEdit = rhs.AllowEdit;
            this.InfoType = rhs.InfoType;
            this.Level = rhs.Level;
            this.Description = rhs.Description;
            this.Tag = rhs.Tag;
            this.Tag = rhs.Tag;
            #endregion
            this.StartPointF = rhs.StartPointF;
@@ -130,7 +132,7 @@
            set { _lineStyle = value; }
        }
        private eLineStyle _lineStyle = eLineStyle.Solid;
        #endregion
        #region Clone
@@ -158,7 +160,7 @@
        {
            var angle = (float)this.StartPointF.AngleClockWise(this.EndPointF);
            var xp = this.StartPointF.GetXPoint(this.EndPointF);
            var size = new SizeF(xp.X - this.StartPointF.X, 2*XmlConfigInfo.ConfigInfo.LineShadow);
            var size = new SizeF(xp.X - this.StartPointF.X, 2 * XmlConfigInfo.ConfigInfo.LineShadow);
            return new ImageInfoCoordinate(StartPointF, angle, size, StringAlignment.Near, StringAlignment.Center);
        }
@@ -169,7 +171,7 @@
        /// <param name="coordinate"></param>
        public void DrawInfo(Graphics g, ImageInfoCoordinate coordinate)
        {
            g.DrawLine(coordinate.Origin, coordinate.Angle, this.LineWidth, coordinate.Size.Width, this.LineColor,this.LineStyle);
            g.DrawLine(coordinate.Origin, coordinate.Angle, this.LineWidth, coordinate.Size.Width, this.LineColor, this.LineStyle);
        }