I have written a windows forms .net application which creates, edits, and converts bitmaps to icons. However, the finished icons look pixelated and sometimes change colors to grayscale (even though the icons properties say it's 32-bit, just like the other
icons on my system). I think the problem is that I have Vista, and the code is creating xp icons or something. I hear that vista and 7 icons are significantly different, so I was wondering how to create these vista icons in Visual Studio.
Here's my code (it runs when the user clicks a button):
Image^ pictureBoxImage = pictureBox1->Image;
Bitmap^ bmp = gcnew Bitmap(pictureBoxImage);
System::Drawing::Icon^ icon = Icon->FromHandle(bitmap->GetHicon());
FileStream^ imageFile = File::Create(textBox2->Text);
By the way, although I use C++ I can understand C# and VB code, so feel free to give me code samples in those languages.
View Complete Post