This commit is contained in:
seerge
2023-03-16 22:59:50 +01:00
parent 9653b81cd3
commit e3019a313a

View File

@@ -66,6 +66,7 @@ namespace CustomControls
using (Pen penSurface = new Pen(this.Parent.BackColor, borderSize))
using (Pen penBorder = new Pen(borderDrawColor, borderSize))
{
penBorder.Alignment = PenAlignment.Outset;
pevent.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
this.Region = new Region(pathSurface);
pevent.Graphics.DrawPath(penSurface, pathSurface);