问题
Using Windows Forms, I have a notification popup with the following code:
Notify.BalloonTipText = String.Format("Test 0", "Test 1", "Test 2", "Test 3");
Notify.Visible = true;
Notify.Icon = Properties.Resources.busy;
Notify.BalloonTipIcon = ToolTipIcon.None;
Notify.ShowBalloonTip(5000);
The resulting image looks terrible.
It doesn't seem to care that the icon has the correct dpi inside it. It seems to always select the smallest and size it upwards, clearing the alpha channel to 0 at the same time.
I read about applications having to be DPI aware but I'm not sure how to do that with Windows Forms, or how to get it to load the most appropriate icon size.
来源:https://stackoverflow.com/questions/34944649/notifyicon-icon-looks-terrible