Based on the data, I need to dynamically generate a graphic in my ASP.NET page. What is the best way to do this. Is this easier to implement in Silverlight.
Asked
Active
Viewed 817 times
1
-
you will have to find a control to do this for you. – Daniel A. White Aug 31 '11 at 19:56
4 Answers
2
You can use any graphics library, including the classes in the System.Drawing
namespace.

Oded
- 489,969
- 99
- 883
- 1,009
-
-
@andromeda - That's up to you, but yes, that's what the namespace is all about - images. – Oded Aug 31 '11 at 20:05
-
-
1@andromeda - Not as far as I know, but see [this](http://stackoverflow.com/questions/1525421/drawing-svg-in-net-c). – Oded Aug 31 '11 at 20:08
0
no, SL in not absolutely needed, you can draw it line by line using GDI+ (Managed GDI APIs) on the server side from C#.
SL could help a bit but it really depends if you want then to bind your application to a plugin. I would not, just to be cross platform (including mobile devices)...

Davide Piras
- 43,984
- 10
- 98
- 147
0
- You can create the image on the server side and returns via httpHandler
- TO draw on the client side using javascript you can find a special librarise like this
- You can use Silverlight or Flash
- I'm not sure but probably it can be done via CSS3

Samich
- 29,157
- 6
- 68
- 77
-
-
maybe :) I know that new technologies allow to do this but here is still problems with cross-browser i think. Thanks for clarification :) – Samich Aug 31 '11 at 20:17
0
I would seriously recommend using http://raphaeljs.com/
You could create server side code to do it using system.drawing, but Raphael can do it all in the browser, saving you a round trip.

Simon Halsey
- 5,459
- 1
- 21
- 32