Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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
Posted
Comments
member 8888995 4-Nov-13 1:01am    
why you want to draw it without bitmaps?
Sergey Alexandrovich Kryukov 4-Nov-13 9:42am    
I think it makes full sense, in many cases. Don't you think sending bitmaps on each request is somewhat wasteful? Vector graphics and client-side processing (in Web applications, powerful client-side machines are always under-used) can be much better.

I up-voted this question with my 5 and answered it, please see my solution.

—SA
member 8888995 5-Nov-13 1:11am    
Seen. It's really nice.
Sergey Alexandrovich Kryukov 5-Nov-13 1:31am    
Thank you.
—SA

1 solution

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
 
Share this answer
 
v2
Comments
Bernhard Hiller 4-Nov-13 2:42am    
Those "21 ridiculously impressive experiments" are really impressive. Thanks for that link.
Sergey Alexandrovich Kryukov 4-Nov-13 9:23am    
My pleasure.
—SA
thatraja 4-Nov-13 8:18am    
5!
Sergey Alexandrovich Kryukov 4-Nov-13 9:23am    
Thank you, Raja.
—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