Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to achieve following
1. Editing a image by drawing it on canvas(by drawing shape such as rectangle, circle, pencil etc)
2. To store only the drawing on canvas and not the entire canvas with image. This will be considered as single layer. User can draw as many layers on same image and save each layer separately so later he can choose the required layer and view it on canvas again.
3. As I have to store these layers somewhere, could you please help on how should I save it. Should I separate each layer separately in database or should I store coordinates for the shapes in database(this won’t be helpful in case of pencil tool)?(need smarter approach then working harder)
4. Also user should be able to change the shape colors as per configuration(please have a look to my attached file)
5. Not finished yet. When hovered over any drawn line, the tooltip corresponding to that line should be displayed.
Please help me with proper approach to do this.
Posted
Updated 30-Jan-14 3:58am
v2
Comments
ZurdoDev 30-Jan-14 9:14am    
Where are you stuck?
Kenneth Haugland 30-Jan-14 9:51am    
This isnt a question, its some requirements

1 solution

Do some research e.g. read Codeproject articles such as this one Paint Brush Application Using HTML5 Canvas[^] (there are others in CodeProject and even more can be found via Google).

Have a go yourself (it's probably not as hard as you think). If you hit problems then come back and post a question about those problems, including the code that you have written.

Good luck!
 
Share this answer
 
Comments
Dexter11 31-Jan-14 5:39am    
Thanks for your replies. I have just started working on it.
There's one requirement where i am stuck, i want tool something like elbow connector to be used on my canvas.If this is possible can anyone help me with code.

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