在Webform中的图像上绘制动态圆 [英] Draw Dynamic Circle Over Image In Webform

查看:96
本文介绍了在Webform中的图像上绘制动态圆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我想在ASP.Net Web表单中的图像画布上动态绘制圆.

我的要求是,如果
A = 90
B = 50
C = 80
D = 100
然后,我将绘制四个圆圈.绘制具有该值的半径的四个圆并不是固定的.NumberCircle将被动态控制,并且其X和Y坐标以及半径将被动态控制.

可以使用javascript完成,但是我不知道如何将Cav-Sharp嵌入到javscript代码中.以下链接http://processingjs.org具有许多JavaScript处理代码.我对处理js代码没有经验的处理js的主要问题.

谁能更好地建议我,以便我实现自己的目标.

谢谢,
Deepak Pandey

Hello,

I want to dynamic draw circle over a Image Canvas in ASP.Net Web form.

My requirement is this if
A=90
B=50
C=80
D=100
Then I will draw four circle circle. It is in not fix to draw four circle with radius of there value.Number Circle will be controlled dynamically and its X and Y Coordinates and radius will are controlled dynamically.

It can be done using javascript but I got no idea how to embed the javscript code with C-Sharp. The following link http://processingjs.org has number of JavaScript processing code. The main problem with processingjs that I have not experience with working with processingjs codes.

Can anyone suggest me better so that I can achieve my goal.

Thanks,
Deepak Pandey

推荐答案

如果您打算支持HTML 5,请参考 ^ ],它易于使用.

您可以使用其他第三方控件,例如:
如何在运行时在ASP.NET中动态创建ImageDraw控件 [ ^ ]
if you are planning to support HTML 5, then refer to Html5 Canvas[^], its easy to use.

You can use other third part controls such as :
How to dynamically create ImageDraw controls at runtime in ASP.NET[^]


这篇关于在Webform中的图像上绘制动态圆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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