如何使用asp.net c#在网页上绘制线条,矩形,椭圆 [英] how to draw line,rectangle,ellipse on web pages using asp.net c#

查看:77
本文介绍了如何使用asp.net c#在网页上绘制线条,矩形,椭圆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨观众,



我试图在页面加载中绘制这些类型。我无法创建它。

请帮我创建没有位图的线条,矩形,椭圆。



提前感谢

解决方案

< blockquote>没有位图?您可以使用HTML5矢量图形画布功能:

http:// en .wikipedia.org / wiki / HTML5 [ ^ ] ,

http://en.wikipedia.org/wiki/HTML5_canvas [ ^ ]。



您可以使用以下教程来学习它:

https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Canvas_tutorial [ ^ ],

http://www.html5canvastutorials.com/ [ ^ ]。



这只是为了感受它的力量:http://net.tutsplus.com/articles/web-roundups/21-ridiculously-impressive-html5-canvas-experiments/ [<一个href =http://net.tutsplus.com/articles/web-roundups/21-ridiculously-impressive-html5-canvas-experiments/target =_ blanktitle =New Window> ^ ] 。



-SA


hi viewers,

am trying to draw those types in page load.i cant create that.
pls help me to create the lines,rectangles,ellipse without bitmaps.

thanks in advance

解决方案

Without bitmaps? You can use HTML5 vector-graphics canvas feature:
http://en.wikipedia.org/wiki/HTML5[^],
http://en.wikipedia.org/wiki/HTML5_canvas[^].

You can learn it using, for example, these tutorials:
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Canvas_tutorial[^],
http://www.html5canvastutorials.com/[^].

And this is just to feel the power of it: http://net.tutsplus.com/articles/web-roundups/21-ridiculously-impressive-html5-canvas-experiments/[^].

—SA


这篇关于如何使用asp.net c#在网页上绘制线条,矩形,椭圆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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