|
-
Mar 12th, 2004, 04:12 AM
#1
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?
I don't live here any more.
-
Dec 6th, 2004, 06:05 AM
#2
Hyperactive Member
Got the same problem
I've got the same problem on saving bitmaps.
Maybe it has something to do with MyBitmap.Save( string, imageformat)
I'm looking for an imageformat to specify the BitMap.
Still looking.....
-
Dec 6th, 2004, 07:23 AM
#3
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
"The dark side clouds everything. Impossible to see the future is."
-
Dec 6th, 2004, 08:37 AM
#4
Re: ImageFormat - BMP can't open...
Start...Programs...Microsoft Office Tools...
I don't live here any more.
-
Dec 6th, 2004, 09:13 AM
#5
Re: ImageFormat - BMP can't open...
Hi
Same error !!
Tried saving as Imaging.ImageFormat.Jpeg works ok, its only with bitmaps.
Regards
Jorge
Last edited by Asgorath; Dec 6th, 2004 at 09:18 AM.
"The dark side clouds everything. Impossible to see the future is."
-
Dec 6th, 2004, 09:43 AM
#6
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)
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|