復制代碼 代碼如下:
Response.Clear();
Response.ContentType = "image/PNG";
img.Save(Response.OutputStream, ChartFormat.Png);
復制代碼 代碼如下:
Response.ContentType = "image/jpeg";
復制代碼 代碼如下:
Response.ContentType = "image/PNG";
using (MemoryStream ms = new MemoryStream())
{
img.Save(ms, ChartFormat.Png);
Response.OutputStream.Write(ms.GetBuffer(), 0, (int)ms.Length);
}
新聞熱點
疑難解答
圖片精選