Using pngImage As Image = Image.FromFile(pngFilePath) Using bmp As New Bitmap(pngImage.Width, pngImage.Height) Using g As Graphics = Graphics.FromImage(bmp) g.Clear(Color.White) g.DrawImage(pngImage, 0, 0, pngImage.Width, pngImage.Height) End Using bmp.Save(OutputFile, ImageFormat.Png) End Using End Using