ImageFormat - BMP can't open...
My program saves images in BMP format. MSpaint opens the new file OK but MS PhotoEditor doesn't (error: "Couldn't open file"). MSPhotoeditor usually opens bmp's OK so what is different? Do the Image/Bitmap classes save bitmaps in a non-standard manner?
Is this a problem with photoeditor or .Net?
Re: ImageFormat - BMP can't open...
Hi
I tested the following on 4 diferent programs (irfanview,paint,windows picture and fax viewer and paintshop pro) and opens ok, can't find msphotoeditor on my system?!
Code:
Dim a As New Bitmap(100, 100, Imaging.PixelFormat.Format32bppRgb)
a.Save("c:\test.bmp", Imaging.ImageFormat.Bmp)
Regards
Jorge
Re: ImageFormat - BMP can't open...
Start...Programs...Microsoft Office Tools...
Re: ImageFormat - BMP can't open...
Hi
Same error !!
Tried saving as Imaging.ImageFormat.Jpeg works ok, its only with bitmaps.
Regards
Jorge
Re: ImageFormat - BMP can't open...
Hi guys.
You cannot use a colordepth of more than 24bbp.
At least, not if you want to open it in MS Photo Editor.
Code:
Dim a As New Bitmap(100, 100, Imaging.PixelFormat.Format24bppRgb)
a.Save("c:\test.bmp", Imaging.ImageFormat.Bmp)
My problem was the filestreamer
I loaded the image in a filestreamer.
Like this:
Dim fs as FileStream = new IO.Filestream(Imagename, FileMode.Open)
Dim MyImage as bitmap = bitmap.FromStream(fs)
fs.Close()
Me.PictrueBox1.Image = MyImage.Clone
Me.PictureBox1.Image.Save(Savename)
This is not what I'm doing more often, Cause I cannot read the bitmap with an Imageviewer, after saving.
Now I just load the image Like: Dim MyImage as Bitmap = new Bitmap(ImageName)
Then it works perfectly!
ImageFormat - BMP can't open...
I load bitmaps into my program and save it, like the previous post up here,
but I can only view it in photo editor.
Even Paint shop doesn't show the Bitmaps.
Does anyone know what's the problem??