Bit地图 b = new Bit地图(width / 2, height);怎么将b变成图片并且保存到当前项目里面的debug文件夹里面

Bitmap b = new Bitmap(width / 2, height);如何将b变成图片并且保存到当前项目里面的debug文件夹里面
Bitmap b = new Bitmap(width / 2, height);如何将b变成图片并且保存到当前项目里面的debug文件夹里面
图片 Bitmap

------解决方案--------------------

public void CreateBitmap(string filename,int width,int height)
{
     Bitmap b = new Bitmap(width / 2, height);
     b.Save(filename+".png",System.Drawing.Imaging.ImageFormat.Png);
     b.Dispose();
}