convert bitmap to image for ASP.NET

前端 未结 6 1549
无人及你
无人及你 2021-01-24 23:16

this is how my code look now:

System.Drawing.Image objImage = System.Drawing.Image.FromFile(Server.MapPath(\"aaa.jpg\"));

int height = objImage.Height;
int widt         


        
6条回答
  •  情歌与酒
    2021-01-25 00:16

    You might be forgetting to set the Response.Headers. Check out the following example that shows how to create bar chart images and then display it on the screen:

    http://www.highoncoding.com/Articles/399_Creating_Bar_Chart_Using__NET_Graphics_API.aspx

提交回复
热议问题