我的目标是将相同的图标显示两次,但每次都有不同的大小。我尝试了以下几种方法:
FileStream fs = new FileStream("name_of_the_icon_file.ico", FileMode.Open);
Icon ico = new Icon(fs, 32, 32); //create an in-memory instance of the icon, size 32x32
Icon ico2 = new Icon(fs, 16, 16); //create an in-memory instance of the icon, size