Convert image format from .bmp to other image formats in vb.net

The system.Drawing.Bitmap class can handle opening and saving any kind of bitmap image, including JPG, PNG, GIF, BMP, and others.

To save an already opened file as a different format you can use the save method as so

MyImage.Save("ImageName.jpg",System.Drawing.Imaging.ImageFormat.Jpeg)

The class name of Bitmp refers more specifically to the general concept of storing a picture as a series of coloured pixels rather then the actual format of BMP, which is one possible way to store the representation of the pixels that make up an image.


Check out the Drawing.Bitmap.Save() method. I recommend saving as PNG - it's lossless and achieves reasonable compression. See the Imaging.ImageFormat enum - this is how you specify the image type you want.