开发者

How to save the drawing (contents) on a panel as an image using C# and asp.net

How to save the drawing (contents) on a panel as an image using C# and asp.net.I found Panel1.DrawToBitmap but its not working in the asp.net ,is there any assembly i am missing or the function is all together different ?

 int width =Convert.ToInt32(Panel1.Width);
    int height = Convert.ToInt32(Panel1.Height);
    Bitmap bmp = new Bitmap(width,height);       
    Panel1.DrawToBitmap//no definition or missing assembly

Any h开发者_如何学运维elp or suggestion will help me a lot.

Thanks,


DrawtoBitmap is a windows forms method. I don't believe there is a asp.net equivalent.


Since it's a web page it depends on what kind of browser is rendering the HTML that your ASP page renders. If your'e interested in how your web page looks in different browsers, http://browsershots.org/ is a fun page.

Otherwise I guess you could try to render the HTML yourself and draw that to a Bitmap.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜