MSMVPS.COM
The Ultimate Destination for Blogs by Current and Former Microsoft Most Valuable Professionals.

Another bug in .net

pictureBox.Image.Save  method

For Example:

Reference MSDN,following code will save the image of the picturebox as a ico file.

private void button1_Click(object sender, System.EventArgs e)
  {
      System.Drawing.Imaging.ImageFormat  iconFormat;

   iconFormat=System.Drawing.Imaging.ImageFormat.Icon;
   pictureBox1.Image.Save("c:\\1.ico", iconFormat);
  }

But ,in fact, file format of  "1.ico" is PNG than ICO


Posted Oct 27 2003, 01:59 PM by ch21st

Add a Comment

(required)  
(optional)
(required)  
Remember Me?


Copyright © is the original authors. Blog site is an independent site not sponsored by Microsoft. The Yoda blog server and the Brianna SQL server would like to thank www.ownwebnow.com and www.exchangedefender.com. They wouldn't be here and broadcasting without the generosity of Vlad Mazek and his companies.

Powered by Community Server (Commercial Edition), by Telligent Systems