关于icon

一般在线转icon的工具是这样的,会叫你选择图片尺寸

但其实不是这样的,不应该是单选,应该是并列的,一个icon是有多张图片的,更像是压缩包或者ps的图层
我宁愿相信这是远古时代的遗毒
在windows桌面放大图标的时候,没有某些尺寸的分辨率就会显示很小
同样如果尺寸过大不匹配,在windows的托盘里面图标就会显示出锯齿

你需要类似这样的工具把来制作一个复合的icon文件

如果编译了exe发现图标没刷新,还是之前的
可以删除缓存试试
https://answers.microsoft.com/en-us/windows/forum/all/how-to-rebuild-icon-cache-clear-thumbnail-cache-in/1e45604c-c8e2-4d6b-9e32-77f07e07bc17
https://www.tenforums.com/tutorials/5645-rebuild-icon-cache-windows-10-a.html

:: Created by: Shawn Brink
:: Created on: April 27th 2015
:: Updated on: October 11th 2018
:: Tutorial: https://www.tenforums.com/tutorials/5645-rebuild-icon-cache-windows-10-a.html


@echo off
set iconcache=%localappdata%\IconCache.db
set iconcache_x=%localappdata%\Microsoft\Windows\Explorer\iconcache*

echo.
echo The explorer process must be temporarily killed before deleting the IconCache.db file. 
echo.
If exist "%iconcache%" goto delete
echo.
echo The %localappdata%\IconCache.db file has already been deleted.
echo. 
If exist "%iconcache_x%" goto delete
echo.
echo The %localappdata%\Microsoft\Windows\Explorer\IconCache_*.db files have already been deleted.
echo.
exit /B

:delete
echo.
echo Attempting to delete IconCache.db files...
echo.
ie4uinit.exe -show
taskkill /IM explorer.exe /F 
If exist del /A /F /Q "%iconcache%"
If exist del /A /F /Q "%iconcache_x%"
start explorer.exe
echo.

posted @ 2021-03-27 09:38  trykle  阅读(111)  评论(0编辑  收藏  举报