c# - Windows 10 NotifyIcon Icon always looks very pixilated -
i having trouble making notifyicon in windows 10 icon resource looks blurry mess.
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:
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
Post a Comment