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.
我使用AES算法加密图像。加密和解密效果很好。现在图像的缩略图是默认图像。
但我想要一些对用户有用的东西。像这张图片。
我搜索了很多,但我只能找到基于文档的应用程序的快速查找。如何为 jpeg、png 或 tiff 图像添加缩略图?
我假设您在创建文件时知道文件的路径,并且您的项目中有图标图像,因此只需使用 NSWorkspace 方法setIcon:forFile:options:。