Click here to Skip to main content
15,878,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to write a program where I have an image with locations marked and a search field next to it. When an item is searched I want it to indicate on the image somehow.

I'm thinking a box or highlight or arrow image that is activated over the standard image? Would this need to be transparent then? What would be the nicest way to indicate this, using winforms or otherwise for windows 10.

Thanks.

Edit: In Summary, A CAD drawing will be made and a list of places will correspond to the map. When a user selects from the list, I would like the map to highlight for that room.

What I have tried:

Nothing yet, not sure how this would be possible.
Posted
Updated 9-Aug-21 1:13am
v3
Comments
Richard MacCutchan 9-Aug-21 5:35am    
What do you mean by "items": people, places, businesses ... ?
Paul Carson 2021 9-Aug-21 5:43am    
Sorry I meant places. A CAD drawing will be made and a list of places will correspond to the map. When a user selects from the list, I would like the map to highlight for that room.
Richard MacCutchan 9-Aug-21 6:18am    
Then you will need to create a dictionary of some sort to relate the search names to the positions on the drawing.

1 solution

You could use ColorMatrix() and ImageAttributes() for this, see this CodeProject article:
Color Matrix Image Drawing Effects[^]
 
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