How do you convert GIF to WBMP? RRS feed

  • Question

  • User-19547064 posted

    Does anyone know how to convert a GIF image to WBMP format using .NET?

    Tuesday, December 5, 2006 3:36 PM

All replies

  • User-1969952815 posted

    I'm assuming you mean "Windows Bit Map Picture" or bmp.

    Yes, you can convert the file. 

            Dim img As System.Drawing.Image = Nothing
                img = System.Drawing.Image.FromFile("c:\test.gif")
                img.Save("c:\test.bmp", System.Drawing.Imaging.ImageFormat.Bmp)
            Catch ex As Exception
                img = Nothing
            End Try


    Tuesday, December 5, 2006 5:15 PM
  • User-19547064 posted

    No, actually WBMP and BMP are two completely different formats. Some WAP enabled mobile devices can only display WBMP images and not GIF or BMP.

    Tuesday, December 5, 2006 5:32 PM
  • User752049302 posted

    Google 'GIF - WBMP converter'.

     You should find a converter quite easily.

    Friday, December 8, 2006 8:20 AM
  • User752049302 posted
    sorry for double post, I seem to have missed the 'with .Net' part in my response...
    Friday, December 8, 2006 8:24 AM
  • User-19547064 posted

    Here's a component I found:


    But, I was hoping someone knew of some free component or open source code that does the conversion on the fly.

    Friday, December 8, 2006 10:22 AM