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