开发者

How do I get the 64x64 icon of a file type/extension in C#?

Ok so the title is, once again, straight forward.

I need t开发者_开发技巧o extract the 16x16 icon of a file extension, and it works.

But the other (large) size is 32x32 or 48x48 (Can't remember at the moment).

But for my interface I need the 64x64 icon of the file type.

How do I extract it?

P.S. The faster, the better, 'cuz I am gonna need to extract lots of icons.


You could try using a MultiIcon object to iterate through the icons. http://www.codeproject.com/KB/vb/MultiIcon.aspx


You can try to use this logic from CodeProject


I found this on another site:

Icon icon1 = IconFactory(@"C:\hoge.ico", 64, 64);

Also, check out http://msdn.microsoft.com/en-us/library/ms648075.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜