hello,
i would like to know if it is possible to read pixels,
from an minimized application.
And show them on a picture box in my app.
If somebody know this, please tell me how, where to start or give me an example.
Thank you very much
Chris ![]()
hello,
i would like to know if it is possible to read pixels,
from an minimized application.
And show them on a picture box in my app.
If somebody know this, please tell me how, where to start or give me an example.
Thank you very much
Chris ![]()
Read pixel from other application?
xRuntime
You can get The pixel from another application with help of some API call
There are two approach
First Method:
Capture forground window Then Create Bitmap from it then use
Managed Bitmap class to read pixel from it some thing like
Bitmap bmp=etDesktopWindow();
Color color=bmp.GetPixel(Cursor.Position.X,Cursor.Position.Y);
For an example for this method look at
How to use Visual C# to obtain the color of the pixel that is referenced by the mouse pointer
Seconed Method :
Calling GetPixel() API For an example for how to do it in C++ you can easly convert it to c# with help with
www.PInvoke.net look at
A method to get the pixel color under the mouse pointer