开发者

Best image format for tray icon

开发者 https://www.devze.com 2023-02-19 12:56 出处:网络
I created a Java application with tray icon. I am using a transparent png image. However, the rendered icon is very ugly on all platforms, including Windows 7 and Linux.

I created a Java application with tray icon. I am using a transparent png image. However, the rendered icon is very ugly on all platforms, including Windows 7 and Linux.

Are there any good practices for creating tray icons (e.g. format, size, 开发者_Python百科etc.)?


In windows, you should use the .ico format. It may contain multiple icons with different sizes. In Linux I guess png is the standard. Just don't try to scale it. Pre-create multiple versions of the same image with different sizes.


There is no "known solution" for this problem as far as i know. You should switch your transparent icons to square ones. You can check this question for deeper information;

java TrayIcon using image with transparent background

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号