Please help,
I am trying to save a .bmp file from a BitMap object in VB .NET and it saves, but the file is always "solid" black. If I save it as a PNG file it looks as it should, however I need it in a BMP. Has anyone out there had a similar problem, if so how did you solve it? I have been trying for days and get nowhere. The code is pasted below:
...
m_Bitmap.Save("C:\Testing.bmp", m_Bitmap.RawFormat.Bmp)
m_Bitmap.Dispose()
m_Bitmap = Nothing
The value of m_Bitmap has been set prior to calling Save. I tested it by placing it in another PictureBox value in my VB form and it showed as it should.
Thanks in advance to anyone with an idea.
I am trying to save a .bmp file from a BitMap object in VB .NET and it saves, but the file is always "solid" black. If I save it as a PNG file it looks as it should, however I need it in a BMP. Has anyone out there had a similar problem, if so how did you solve it? I have been trying for days and get nowhere. The code is pasted below:
...
m_Bitmap.Save("C:\Testing.bmp", m_Bitmap.RawFormat.Bmp)
m_Bitmap.Dispose()
m_Bitmap = Nothing
The value of m_Bitmap has been set prior to calling Save. I tested it by placing it in another PictureBox value in my VB form and it showed as it should.
Thanks in advance to anyone with an idea.