المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : C# Images on Forms



C# Programming
06-08-2009, 11:21 PM
Hi,

I'm kind of new to programming and to c# about 18 months c# and twice that with vba with bits of javascrip and, vbscript... and a hobbyist so it sounds a lot but it isn't!

Anyways I have never used images before in programming other than to swap a picture given a value in the code.

I now want to be able to have an image on a windows form that you can left click and a dialogue box appear that shows the position in pixels the mouse is on the image.

To be honest I'd be happy with just that. BUT really on the picture I want to have (probably the wrong word) but 'hotspots'/hot areas.

I am designing a form to be able to record where on a person has an injury. I want the user to be able to click say on the left shoulder of the person on the image and the program know that the user clicked on the left shoulder at the image pixel count of (100, 100) for example.

Would it be best to do this thru a browser displayed image that has a ********** script running on it and embedding in it somehow position (left shoulder) the user has clicked?

The reason why I want need the pixel count is because the results will be shown on a website.

Am I attempting too much? Could somebody please give me some direction?

Thank you in advance,

Mark