From db7e8dd6dcc0beb1e84aa2bc857b0161eb3836b9 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Mon, 6 Jun 2022 15:10:09 +0800 Subject: [PATCH] Update MainFormHandler.cs --- v2rayN/v2rayN/Handler/MainFormHandler.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v2rayN/v2rayN/Handler/MainFormHandler.cs b/v2rayN/v2rayN/Handler/MainFormHandler.cs index 37fd7c9c..b6735f32 100644 --- a/v2rayN/v2rayN/Handler/MainFormHandler.cs +++ b/v2rayN/v2rayN/Handler/MainFormHandler.cs @@ -94,8 +94,11 @@ namespace v2rayN.Handler Graphics graphics = Graphics.FromImage(bitmap); SolidBrush drawBrush = new SolidBrush(color); - graphics.FillRectangle(drawBrush, new Rectangle(0, 0, width, height)); + graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; + //graphics.FillRectangle(drawBrush, new Rectangle(0, 0, width, height)); graphics.DrawImage(new Bitmap(item.customIcon), 0, 0, width, height); + graphics.FillEllipse(drawBrush, width/2, width/2, width/2, width/2); + Icon createdIcon = Icon.FromHandle(bitmap.GetHicon()); drawBrush.Dispose();