convert bitmap to image for ASP.NET

前端 未结 6 1554
无人及你
无人及你 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:03

    Bitmap is a subclass of Image, so there no need to convert Bitmap to Image. It already is...

提交回复
热议问题