Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.


C#
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.
Posted
Updated 3-Oct-19 1:30am
v3
Comments
F-ES Sitecore 1-Oct-19 9:14am    
You're going to need some kind of AI that can identify body parts from an image which is not trivial in the slightest, it is a hugely complex task. On top of that you need it to identify injured parts which adds to the complexity ten fold. If you don't even know how to get started on this then the task is probably beyond your abilities.

When you "click on it", save the mouse coordinates (in a collection / list), with the image, for storing in the data base.

When you "restore" the image, restore the mouse coordinates and re-apply the "highlights".

If you need to identify "body parts", then have a list the user can select from before highlighting and creating "new" mouse coordinates.

Use XML or delimited strings for recording details.
 
Share this answer
 
v2
 
Share this answer
 

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