* UILineChart: 增加了一个点的样式
This commit is contained in:
parent
47450a3880
commit
c7f6b1a0d8
Binary file not shown.
BIN
SunnyUI.rar
Normal file
BIN
SunnyUI.rar
Normal file
Binary file not shown.
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -469,7 +469,8 @@ namespace Sunny.UI
|
||||
Triangle,
|
||||
Circle,
|
||||
Plus,
|
||||
Star
|
||||
Star,
|
||||
Round
|
||||
}
|
||||
|
||||
public struct UILineSelectPoint
|
||||
|
Loading…
x
Reference in New Issue
Block a user