.ICO图像在Windows操作系统不适合文件夹形象? [英] .ico image not suited for folder image in windows OS?

查看:117
本文介绍了.ICO图像在Windows操作系统不适合文件夹形象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了转换的C#Windows程序中的所有图像分成.ICO file.But的.ICO只对文件夹的图片

I write the c# windows program for convert the all image into .ico file.But the .ico only suited for favicon only not for folder image

下面是我的code

Image theImage = Image.FromFile(textBox1.Text);
Bitmap theBitmap = new Bitmap(theImage, new Size(width, height));

第二行是用于将图像转换成.ico文件。

Second line is use for convert the image into .ico file.

有人知道如何解决这个问题?

Anybody know how to solve this?

推荐答案

在总之,你需要包括大小为16x16,32×32和48×48,这是GetHicon没有创造32位的图标,当很好的图标。您可以使用FreeImage的,只要你只需要32位的图标创建多资源的图标。

In short, you need to include icons of size 16x16, 32x32, and 48x48, which GetHicon is not very good at when creating 32-bit icons. You can use FreeImage to create multi-resource icons as long as you only need 32-bit icons.

请看看我的回答你的相关问题,在这里为code例如:
转换图像在C#以图标

Please see my answer to your related question here for a code example: Convert image to icon in c#

这篇关于.ICO图像在Windows操作系统不适合文件夹形象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆