Click here to Skip to main content
15,920,111 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello

I have created a simple paint program that allows user to draw lines and shapes.

But how can i add the feature to use a "paint bucket" ?

Any suggestions,concepts or any kind of ideas would be appreciated..
Posted
Comments
Sergey Alexandrovich Kryukov 11-Jan-15 12:12pm    
What ideas? Such things have been done many times. I don't understand what could be unclear? At the same time, there can be many different designs, so you simply cannot all the ideas coming from different people.
What do you mean "how can I add the feature"? By doing some design and implementation work. If you have some specific concerns, please ask for advice, but now it's not clear what to help with. Describe the behavior you want to get precisely, your problems, and so on...
—SA
BillWoodruff 11-Jan-15 12:20pm    
Namaste, Sri Bibhuti, I think you need to slow down a bit; if you spend some time searching on CodeProject you'll find examples of a painting program, or techniques, that will help you implement these features.

1 solution

You will need a button or other control to select the bucket. Then look at Cursors, don't know how to make own cursor image but there should be examples on-line.
When bucket is chosen, you need an event handler to track mouse click events to get cursor X,Y coordinates and determine in what region of the drawing the point is in.
 
Share this answer
 
v2

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