954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

drawing a region and fill it with color using colobox [corrected]

how can i draw a free-shape (it means no particular shape or sides) and fill it in with the colors chosen from colordialog?

e.g. im gonna draw a rounded rectangle and i want to fill its insides with color red.

answers will be appreciated :)

kazekagerandy
Light Poster
45 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

You need to check the following links.

link1
link2
link3
link4

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

your links are somewhat hard to understand for a beginner like me, thanks anyway :)

im looking for a code that can be easily understood and really does the task.

kazekagerandy
Light Poster
45 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

You need to start with drawing a circle.

Gradually change its different parameters to create oval shapes and proceed further.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

thanks for your suggestion, but im really running out of time to study the whole thing, do you have a custom-made codes which can do it? thanks

kazekagerandy
Light Poster
45 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

Could not you find any in the provided links ?

i believe there are enough code there.

and all of them are custom made.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

yes there are codes there, but it doesnt fit the work i want.

let me explain it, i am making a hairstyle and makeup software, and the region to be filled is for the lipstick feature of the software wherein the user will trace the sides of the lips of the image and the fill will be the color of the lipstick using a colordialog. the links provided custom-made shapes like triangle , ellipse, etc. but what im looking for is that the user will actually draw the lips on the picturebox.

kazekagerandy
Light Poster
45 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

what about reading this or this .

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

thanks for your posts but it doesnt get the point that i want, thanks for your efforts :)

kazekagerandy
Light Poster
45 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

After all the links I have provided, just want to know what you have codes so far.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

i think this one ive got over google is kind of near to the point of what im searching,

http://www.vb-helper.com/howto_net_make_circle_partition.html

kazekagerandy
Light Poster
45 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

But where is the code that you are working on, not Google search provided code.

Have you created anything of your own ?

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: