i need to change the format of an image from jpg to dll so i can use it as an icon.
im using this vb code to handle the conversion
theBitmapSize.Save(savefiledialog1, System.Drawing.Imaging.ImageFormat.dll)
i can't get it to accept the dll part
can someone help

renaming a picture to a file
anarcosta
Hi,
When does it say the file contains no icons The simple code snippet works.
Bitmap bmp = new Bitmap("D:\\test.jpg");
bmp.Save("D:\\test.ico", System.Drawing.Imaging.ImageFormat.Icon);
And I think it's no necessary to save it as a dll file, simply an icon file is ok.
Evan Mulawski
Jim Kilmer
lustigorMolch
And what's wrong with using this:
theBitmapSize.Save(savefiledialog1, System.Drawing.Imaging.ImageFormat.Icon)
Edward Kong
when i go to set it as the icon for a file, it says the file C:\test.ico contains no icons
i cant get it to work