Click here to Skip to main content
15,901,122 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Image hot spots? Pin
OriginalGriff26-May-10 5:36
mveOriginalGriff26-May-10 5:36 
GeneralRe: C# Image hot spots? Pin
Luc Pattyn26-May-10 5:51
sitebuilderLuc Pattyn26-May-10 5:51 
GeneralRe: C# Image hot spots? Pin
Jacob Dixon26-May-10 8:29
Jacob Dixon26-May-10 8:29 
GeneralRe: C# Image hot spots? Pin
Jacob Dixon26-May-10 5:06
Jacob Dixon26-May-10 5:06 
GeneralRe: C# Image hot spots? Pin
Luc Pattyn26-May-10 5:27
sitebuilderLuc Pattyn26-May-10 5:27 
GeneralRe: C# Image hot spots? Pin
Jacob Dixon26-May-10 6:21
Jacob Dixon26-May-10 6:21 
GeneralRe: C# Image hot spots? Pin
Luc Pattyn26-May-10 6:42
sitebuilderLuc Pattyn26-May-10 6:42 
GeneralRe: C# Image hot spots? Pin
Jacob Dixon26-May-10 6:52
Jacob Dixon26-May-10 6:52 
1. This is an image that was given to us by the Nabholz construction of our floor plan. It includes doors, stairways, closets, etc.. It is very precise, so if a room had a little curve to it, so does the image. I only have a jpg file.. no actual paper. I could always print it out, then scan it back in.

2. I think the issue is I've never done anything like this. So I'm a beginner. Am I an artist? No. If it is possible to program it I guess it would be easier for me to stick with that.

3. Just this one floor for this one building.

I just wanted to point out this wasn't requested of me.. just an idea I had so I could try to accomplish it to learn something. So if it turns out I should be doing something different that is ok.


You are always welcome to view the floor plan if you want me to send to you so you might have a better idea?

Ok so I set this up on the picture box and this:
private void picFloorPlan_MouseMove(object sender, MouseEventArgs e)
{
    lbStatus.Text = string.Format("{0}x / {1}y", e.X, e.Y);
}


This give me the X and Y coordinates of the cursor. So here is exactly what I'm confused on.. Lets say I used my cursor and found 156x / 200y. How do I find that exact location by pixel and color it? Not only that but I'm guessing I would get a range of coordinates and somehow color that range and add each value to an array stating that it is Room 1 or whatever. Another thing is how exactly do I translate the pixel to coordinates? Can you get the specific pixel by coordinate?
GeneralRe: C# Image hot spots? Pin
Luc Pattyn26-May-10 7:39
sitebuilderLuc Pattyn26-May-10 7:39 
GeneralRe: C# Image hot spots? Pin
DaveyM6926-May-10 7:49
professionalDaveyM6926-May-10 7:49 
GeneralRe: C# Image hot spots? [modified] Pin
Luc Pattyn26-May-10 7:58
sitebuilderLuc Pattyn26-May-10 7:58 
GeneralRe: C# Image hot spots? Pin
DaveyM6926-May-10 13:07
professionalDaveyM6926-May-10 13:07 
GeneralRe: C# Image hot spots? Pin
Luc Pattyn26-May-10 13:33
sitebuilderLuc Pattyn26-May-10 13:33 
GeneralRe: C# Image hot spots? Pin
Jacob Dixon26-May-10 8:02
Jacob Dixon26-May-10 8:02 
GeneralRe: C# Image hot spots? Pin
Luc Pattyn26-May-10 8:17
sitebuilderLuc Pattyn26-May-10 8:17 
GeneralRe: C# Image hot spots? Pin
Jacob Dixon26-May-10 8:27
Jacob Dixon26-May-10 8:27 
GeneralRe: C# Image hot spots? Pin
Luc Pattyn26-May-10 8:38
sitebuilderLuc Pattyn26-May-10 8:38 
GeneralRe: C# Image hot spots? Pin
Jacob Dixon26-May-10 10:41
Jacob Dixon26-May-10 10:41 
GeneralRe: C# Image hot spots? Pin
Luc Pattyn26-May-10 10:51
sitebuilderLuc Pattyn26-May-10 10:51 
GeneralRe: C# Image hot spots? Pin
Jacob Dixon26-May-10 11:11
Jacob Dixon26-May-10 11:11 
GeneralRe: C# Image hot spots? Pin
Luc Pattyn26-May-10 11:51
sitebuilderLuc Pattyn26-May-10 11:51 
Questionread from serial port Pin
genieabdo26-May-10 3:41
genieabdo26-May-10 3:41 
AnswerRe: read from serial port Pin
Alaric_26-May-10 4:09
professionalAlaric_26-May-10 4:09 
GeneralRe: read from serial port Pin
genieabdo27-May-10 22:13
genieabdo27-May-10 22:13 
QuestionStreaming images using TCP help Pin
TimSWatson26-May-10 3:32
TimSWatson26-May-10 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.