asp.net html5画布 [英] asp.net html5 canvas

查看:126
本文介绍了asp.net html5画布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专家,

我有这个html5 canvas,我希望从后面的代码中访问它,以便通过C#代码在其上进行绘制(因为绘制程序已在C#中完成).因此,实际上我只希望我的程序使用html5画布而不是其wpf面板进行绘制.

我担心图纸在画布上的显示速度,因为一个在服务器端,另一个在客户端,对吗?我不想拖延腿或拖延时间.请指引我正确的方向.

非常感谢,
Justin

Hi Experts,

I have this html5 canvas and I wish to access it from the code-behind in order to Draw on it through C# code (because the drawing program is ready made in C#). So practically I just wish to have my program use the html5 canvas instead of its wpf panel to draw onto.

I am concerned with the speed at which the drawings will appear on the canvas since one is on server side and the other would be on client side right? I don''t want to have any legs or delays. Kindly guide me in the right direction.

Thanks a lot,
Justin

推荐答案

html5画布用于客户端绘图.在您的情况下,您要绘制服务器端,因此不需要html5画布.看一下如何动态创建服务器端映像的链接.
在ASP.NET中创建动态图像 [
A html5 canvas is meant for client-side drawing. In your case you want to draw server-side and therefor don''t need a html5 canvas. Have a look at the link how to dynamically create server-side images.
Create Dynamic Images in ASP.NET[^]

Good luck!


我遇到了同样的问题,想从图纸开始,但是让用户可以对其进行编辑.请在我的HTML5控件开源套件中查看我的答案.如果不是您要找的东西,请告诉我其他哪些功能可以使画布完整.
I ran into the same issue, wanting to start with a drawing, but leave it editable for the user. Please see my answer to this in my open source suite of HTML5 controls. If it''s not quite what you''re looking for, please let me know what other features would make the canvas complete.


这篇关于asp.net html5画布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆