Click here to Skip to main content
14,453,689 members

How to highlight a particular part of the image ?

Kudale Dinesh asked:

Open original thread
I want the following functionality in windows c# or vb.net. 
 
I want to highlight particular injured part of human body image after click on it. I also want to save highlighted part id in database. After reopening same image, it will show same previously highlighted area again.
 
Can you provide the sample code or any trick?  Thanks in advance.

I have taken one Image Map control on the form. If I clicked on this particular region, then it is showing popup message. But I want to color this region.


private void Form5_Load(object sender, EventArgs e)
        {
            this.imageMap1.AddPolygon("Polygon", new Point[] { new Point(100, 100), new Point(180, 80), new Point(200, 140), new Point(220, 180) });            
        }

        private void imageMap1_RegionClick(int index, string key)
        {
            MessageBox.Show("Region #" + index + ", " + key + ", clicked!", "Region Click");            
        }


What I have tried:

I have searched on internet, but till now, it has not provided answer to my question.
Tags: C#, VB.NET, .NET

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the The Code Project Open License (CPOL).




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100