Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为我的 TrayIcon 创建一个 ImageList,但图像显示的质量不高。它们原本很清晰,但是一旦我在设计时将它们放在 ImageList 上,它们就会变形。我尝试了 ICO 和 PNG 格式的 16x16。
另外,ImageLists 中首选哪种格式?
请指教。
首先,确保您插入的图像大小与图像列表的宽度和高度相符。我不能给你关于图像格式的建议,但我想说没关系——如果你使用 ICO 或 PNG,结果应该是一样的。由于一些较新版本的 Delphi(我使用的是 D2009)有一个属性 ColorDepth,默认设置为 cdDeviceDependent。您可以尝试更改此属性,但我希望默认设置为插入的图像选择正确的颜色深度。