| | |
| | | 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; |
| | |
| | | set { _lineStyle = value; } |
| | | } |
| | | private eLineStyle _lineStyle = eLineStyle.Solid; |
| | | |
| | | |
| | | #endregion |
| | | |
| | | #region Clone |
| | |
| | | { |
| | | 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); |
| | | } |
| | | |
| | |
| | | /// <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); |
| | | } |
| | | |
| | | |