Hi!
I'm trying to read pixels, from desktop in windows.I managed to do so by creating DC with NULL pointer, so i gained access. I was able to read color information of pixels, like icons, applications. Problem is, that i can't read any video or not even mouse pointer. i mean when i read a pixel in area, where a mpg is playing, i always get RGB(0,0,0),a black pixel.
Am i doing right? Are there better ways to do it? What i wanna do is, to copy part of the screen(pixel by pixel?) and send it via RS232 port.
Any suggestions?
thanx
Leith Bade - 14 May 2004 10:41 GMT
The movie issue is a common one, most desktop screen captures suffer the same problem
It is caused by hardware overlay, which means in order to reduce the cpu load, it sends the video straight into graphics memory, therefore bypassing Windows
To fix this in Windows Media Player (version 9), so it does use Windows to render the vieo, do this in Windows Media Player
In menu go Tools -> Options
Go to the Performance tab
Set the Video Acceleration slider to None
This should fix video
I'd say its similar with the mouse pointer but am unsure on how to fix it. I know it can be done as a lot of screen capture utilities have an option to allow it to capture the pointer
Hope it helps
nandrej - 14 May 2004 11:31 GMT
H
So i should read data straight from the video card memory
How could that be done