* UILineChart: 增加了一个点的样式

This commit is contained in:
Sunny 2021-12-31 17:11:35 +08:00
parent 47450a3880
commit c7f6b1a0d8
5 changed files with 9 additions and 2 deletions

Binary file not shown.

BIN
SunnyUI.rar Normal file

Binary file not shown.

View File

@ -64,7 +64,8 @@ namespace Sunny.UI
private void Tip_VisibleChanged(object sender, EventArgs e)
{
tip.IsScaled = true;
tip.Font = this.DPIScaleFont(Font, SubFont.Size);
float size = SubFont != null ? SubFont.Size : SubTextFontSize;
tip.Font = this.DPIScaleFont(Font, size);
}
protected override void Dispose(bool disposing)

View File

@ -585,6 +585,7 @@ namespace Sunny.UI
if (series.Symbol != UILinePointSymbol.None)
{
using (Brush br = new SolidBrush(FillColor))
using (Brush br1 = new SolidBrush(color))
using (Pen pn = new Pen(color, series.SymbolLineWidth))
{
foreach (var p in series.Points)
@ -631,6 +632,10 @@ namespace Sunny.UI
g.FillEllipse(br, p.X - series.SymbolSize, p.Y - series.SymbolSize, series.SymbolSize * 2, series.SymbolSize * 2);
g.DrawEllipse(pn, p.X - series.SymbolSize, p.Y - series.SymbolSize, series.SymbolSize * 2, series.SymbolSize * 2);
break;
case UILinePointSymbol.Round:
g.SetHighQuality();
g.FillEllipse(br1, p.X - series.SymbolSize, p.Y - series.SymbolSize, series.SymbolSize * 2, series.SymbolSize * 2);
break;
case UILinePointSymbol.Plus:
g.DrawLine(pn, p.X - series.SymbolSize, p.Y, p.X + series.SymbolSize, p.Y);
g.DrawLine(pn, p.X, p.Y - series.SymbolSize, p.X, p.Y + series.SymbolSize);

View File

@ -469,7 +469,8 @@ namespace Sunny.UI
Triangle,
Circle,
Plus,
Star
Star,
Round
}
public struct UILineSelectPoint