NotifyIcon icon looks terrible

≡放荡痞女 提交于 2020-01-04 05:27:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!