c# - Windows 10 NotifyIcon Icon always looks very pixilated -


i having trouble making notifyicon in windows 10 icon resource looks blurry mess.

icon

this happens both icons systemicons class, or own using properties.resources. have tried creating new instance of icon icon (icon original, int width, int height) constructor, , sorts of other mad things, including nugget:

icon ico = icon.fromhandle((new icon(resources.infoicon, 256, 256).tobitmap()).gethicon()); 

to no avail. advice appreciated!

the poor icon in screenshot easy address, forgot set notifyicon.balloontipicon property. or use notifyicon.showballoontip() method overload takes tooltipicon. tooltipicon.info you'll high resolution system default icon. example:

    notifyicon1.showballoontip(5000, "edidio",          "connected successfully!", tooltipicon.info); 

which produces:

enter image description here

if want own icon show in notification "balloon" have work around restriction in resourcemanager.getobject() method. using when write "resources.infoicon". getobject() not have enough arguments selective icon size prefer. use code shown in this answer. never use gethicon() btw, poor job @ color palette mapping , can produce 16 color icon.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

post - imageshack API cURL -

dataset - MPAndroidchart returning no chart Data available -