Click here to Skip to main content
15,894,180 members
Home / Discussions / C#
   

C#

 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
AspDotNetDev16-Mar-10 10:17
protectorAspDotNetDev16-Mar-10 10:17 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 10:27
sitebuilderLuc Pattyn16-Mar-10 10:27 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
AspDotNetDev16-Mar-10 11:29
protectorAspDotNetDev16-Mar-10 11:29 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 11:38
sitebuilderLuc Pattyn16-Mar-10 11:38 
Questionc# picture grid and pixel Pin
antrock10116-Mar-10 6:32
antrock10116-Mar-10 6:32 
AnswerRe: c# picture grid and pixel Pin
Luc Pattyn16-Mar-10 6:44
sitebuilderLuc Pattyn16-Mar-10 6:44 
GeneralRe: c# picture grid and pixel Pin
antrock10116-Mar-10 7:45
antrock10116-Mar-10 7:45 
GeneralRe: c# picture grid and pixel Pin
Luc Pattyn16-Mar-10 7:52
sitebuilderLuc Pattyn16-Mar-10 7:52 
I assume an image exists, maybe as a result of
Image myImage=Image.FromFile(filepath);


I avoid background images.

If you want to get a pixel at a known coordinate (x,y), just do Color color=myImage.GetPixel(x,y);

If you want to pick a pixel with the mouse, and assuming the image is shown unscaled, you could use a MouseMove handler:
private void myPanel_MouseMove(object sender, MouseEventArgs e) {
    color=myImage.GetPixel(e.X, e.Y);
    myLabel.Text="Color at ("+e.X+", "+e.Y+") = "+color.ToString();
}


If you need more, I suggest you start reading the MSDN documentation on the relevant classes and methods.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

GeneralRe: c# picture grid and pixel Pin
antrock10116-Mar-10 11:52
antrock10116-Mar-10 11:52 
GeneralRe: c# picture grid and pixel Pin
Luc Pattyn16-Mar-10 12:06
sitebuilderLuc Pattyn16-Mar-10 12:06 
AnswerRe: c# picture grid and pixel Pin
Keith Barrow16-Mar-10 6:47
professionalKeith Barrow16-Mar-10 6:47 
Question[SOLVED] Is reference comparison atomic? Pin
blackblizzard16-Mar-10 4:34
blackblizzard16-Mar-10 4:34 
AnswerRe: Is reference comparison atomic? Pin
Daniel Grunwald16-Mar-10 4:54
Daniel Grunwald16-Mar-10 4:54 
GeneralRe: Is reference comparison atomic? Pin
blackblizzard16-Mar-10 5:00
blackblizzard16-Mar-10 5:00 
AnswerRe: [SOLVED] Is reference comparison atomic? Pin
Sandeep Mewara16-Mar-10 5:03
mveSandeep Mewara16-Mar-10 5:03 
GeneralRe: [SOLVED] Is reference comparison atomic? Pin
blackblizzard16-Mar-10 5:06
blackblizzard16-Mar-10 5:06 
GeneralRe: [SOLVED] Is reference comparison atomic? Pin
Luc Pattyn16-Mar-10 5:38
sitebuilderLuc Pattyn16-Mar-10 5:38 
GeneralRe: [SOLVED] Is reference comparison atomic? Pin
blackblizzard16-Mar-10 5:43
blackblizzard16-Mar-10 5:43 
Questiondaynamic event handlers.... Pin
Xelalem16-Mar-10 3:12
Xelalem16-Mar-10 3:12 
AnswerRe: daynamic event handlers.... Pin
Keith Barrow16-Mar-10 3:17
professionalKeith Barrow16-Mar-10 3:17 
AnswerRe: daynamic event handlers.... Pin
Pete O'Hanlon16-Mar-10 3:18
mvePete O'Hanlon16-Mar-10 3:18 
GeneralRe: daynamic event handlers.... Pin
Keith Barrow16-Mar-10 3:20
professionalKeith Barrow16-Mar-10 3:20 
GeneralRe: daynamic event handlers.... Pin
Xelalem16-Mar-10 3:39
Xelalem16-Mar-10 3:39 
GeneralRe: daynamic event handlers.... Pin
Keith Barrow16-Mar-10 3:54
professionalKeith Barrow16-Mar-10 3:54 
GeneralRe: daynamic event handlers.... Pin
Xelalem16-Mar-10 3:40
Xelalem16-Mar-10 3:40 

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.