Click here to Skip to main content
15,909,651 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please look at this code below:

C#
private void OnMouseMoved ( object sender, MouseEventArgs e ) {
            //throw new Exception( "The method or operation is not implemented." );
            mMouseMoveValid = true;
            mMouseX = e.X;
            mMouseY = e.Y;
            Invalidate();
        }


So, what I need to do is modify this code to show also the output value of the image... it is something like for example : (143,213)= 230 which is x = 143, y = 213 and (the image value at those coordinates is 230 pixel value which is what I need to do).

Thank you for trying
Posted
Updated 21-Feb-12 17:23pm
v2
Comments
Al Moje 21-Feb-12 23:25pm    
Edited: Add pre tag...

1 solution

Have a look at this: Color under Cursor in C#[^]
It probably does what you are asking for.
 
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