首页  编辑  

C#转换位图为JPEG最简单的方法

Tags: /C#/图形图像/   Date Created:
The best simplest way to convert Bitmap to JPEG file
private void ConvertToBitmap(string bmpfile, string jpgfile)
{
	Image bmp = Image.FromFile(bmpfile);
	bmp.Save(jpgfile, System.Drawing.Imaging.ImageFormat.Jpeg);
	bmp.Dispose();
}