Windows Shell如何调整图标叠加? [英] How does the Windows Shell resize icon overlays?
问题描述
我编写了一个Shell图标叠加处理程序,其中包含一个带有256,48,32和16位图标的多图像图标。覆盖位位于左下角,分别为32,15,10和6位。
I've written a Shell Icon Overlay handler that contains a multi-image icon with 256, 48, 32 and 16 bit icons. The overlay bits are in the lower left corner, and respectively are 32, 15, 10 and 6 bits.
在Windows资源管理器中,将视图设置为小,图标是16位,选择的叠加消耗6位。中等图标:48位覆盖10.完全按照我的预期。
In Windows Explorer, with the View set to Small, the icons are 16 bits and the overlay selected consumes 6 bits. Medium icons: 48 bits overlaid with 10. All as I expected.
当View设置为Large时,使用96位图标,覆盖15位。无论这是48位覆盖的15位还是256位的下采样,我都说不出来。如果我为多图像添加96位覆盖,使用32位作为覆盖(仅作为测试),使用的覆盖仍然显示为15位。
When the View is set to Large, a 96 bit icon is used, which is overlaid with 15 bits. Whether this is the 15 bits from the 48 bit overlay, or downsampled from the 256 bit, I can't tell. If I add a 96 bit overlay to the multi-image, using 32 bits for the overlay (just as a test), the overlay used still appears as 15 bits.
当View设置为Extra Large时,使用的叠加层仍然只有15位。只是一个非常大的图标上的斑点。
When the View is set to Extra Large, the overlay used is still just 15 bits. Just a splotch on a very big icon.
所有上述内容都在Windows 7上。在Windows 8桌面上,可以看到相同的结果,除了超大图标现在只覆盖了一个12 * 12的位图,从较大的尺寸(15?32?)明显下采样
All of the above is on Windows 7. On Windows 8 desktop, the same results are seen, EXCEPT that the Extra Large icon is now only overlaid with a 12*12 bitmap, clearly downsampled from a larger size (15? 32?)
任何人都可以帮我找到尺寸叠加的明确答案是否应该提供最大化的观看体验?
Can anyone help with a definitive answer for what size overlays I should be providing for maximizing the viewing experience?
推荐答案
如果您在imageres.dll中看到lnk文件的叠加图标,您会看到该图标包含以下格式:
If you see on overlay icon of lnk file in imageres.dll you will see that icon contains the following formats:
- 48x48x16
- 32x32x16
- 16x16x16
- 48x48x8
- 32x32x8
- 16x16x8
- 256x256x32
- 48x48x32
- 32x32x32
- 16x16x32
- 48x48x16
- 32x32x16
- 16x16x16
- 48x48x8
- 32x32x8
- 16x16x8
- 256x256x32
- 48x48x32
- 32x32x32
- 16x16x32
我认为如果微软将此类格式用于内部叠加图标,那么使用相同格式也是最佳选择。
I think if Microsoft uses such formats for internal overlay icons it is optimal variant to use the same formats too.
这篇关于Windows Shell如何调整图标叠加?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!