gpt4 book ai didi

wpf - 系统托盘中的图标大小是多少?

转载 作者:行者123 更新时间:2023-12-04 15:47:58 25 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





Best Icon size for displaying in the tray

(3 个回答)


2年前关闭。




我想更改我的应用程序的通知图标,但不知道大小是多少,以使其正确显示。目前它会自动调整大小并破坏我的像素!
请帮忙!

最佳答案

事实上,图标的大小会根据系统 DPI 而有所不同。

WPF用SystemParameters.SmallIconWidth暴露小图标的推荐像素宽度和高度和 SystemParameters.SmallIconHeight . (WinForms 公开了等效的 SystemInformation.SmallIconSize - 两者都围绕着 GetSystemMetrics 和 SM_CXSMICON/SM_CYSMICON。)

Microsoft recommends including 16x16 and 32x32 pixel icons .

关于wpf - 系统托盘中的图标大小是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3531232/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com