How to get the RGB values of each pixel in the windows form with GDI+ ?
Hi all, I'm new to GDI+ and C#,
Recently, I try to implement a painer,
I want to get each pixel's RGB values in the form when I click the mouse.
In the MouseDown function,
I have tried "this.GetChildAtPoint(pt).ForeColor.ToArgb();",
but "Exception Error!!" comes up.
How should I solve this problem?
Thanks... :)
dj_toffo2 reputationPosted Aug 4, 2004, 12:46 AM EDT
jimteeuwenRank #4,734 · 328 reputationPosted Aug 8, 2004, 4:24 AM EDT
im547.cis93g6 reputationPosted Aug 8, 2004, 9:30 PM EDT
im547.cis93g6 reputationPosted Aug 9, 2004, 1:27 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts