Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is their any way to draw lines into websites like windows applications?
Posted

There can be different approaches, but not many. Probably you don't mean Java applet, Flash or Silverlight approaches, which would probably give you most flexible techniques.

First, you could do it all with images. Your ASP.NET application can create image on the fly (using System.Drawing) and send them back in HTTP response (please see the code sample in the MDSN article on System.Web.HttpResponse: http://msdn.microsoft.com/en-us/library/system.web.httpresponse.aspx[^]; it will involve considerable performance cost).

Another approach could use client-side code and is based on HTML5 canvas. Please see, for example: https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Canvas_tutorial[^].

—SA
 
Share this answer
 
Comments
Joezer BH 10-Sep-13 3:30am    
5ed!
The best way to do is to use some javascript library. There are lots of javascript libraries which are build with the purpose of drawing application in mind. They will be easier for you as well as lightweight on the client end. You can check Yahoo UI; better google for them and select the one which best suits your requirements.
 
Share this answer
 
 
Share this answer
 
Comments
Ron Beyer 19-Aug-13 1:38am    
I doubt that will help, he's trying to do this on a web page...
[no name] 19-Aug-13 1:40am    
OP mentioned windows app..
Sergey Alexandrovich Kryukov 19-Aug-13 2:04am    
No! Read again.
—SA
Sergey Alexandrovich Kryukov 19-Aug-13 2:11am    
I provided more adequate answer, please see.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900