Selecting the size of a System.Drawing.Icon?

2019-01-06 19:27发布

I have a icon which has a few different sizes (16px, 32px, 64px). I am calling ToBitmap() on it, but it is always returning the 32px image. How do I retrieve the 64px one?

7条回答
乱世女痞
2楼-- · 2019-01-06 20:23

The size is determined when you first create the Icon instance, so you need to specify which size you want to use when you create it, using one of the Icon constructors that take a Size parameter.

查看更多
登录 后发表回答