Image Context

BlitzPlus Forums/BlitzPlus Programming/Image Context

TeraBit(Posted 2004) [#1]
Is there any way to copyrect or otherwise get at the image in another applications window. This has got me stumped.


Beaker(Posted 2004) [#2]
You might want to talk to Scouse (tom speed) on IRC.


Kev(Posted 2004) [#3]
lee, i think you need to look into window region's these are the window area's where system permits drawing, i did try some time back with no luck. checkout these api calls

GetWindowRgn()
SetWindowRgn()

also checkout microsoft's Windows GDI.

kev


Robert(Posted 2004) [#4]
I'm not sure that this would work, but I think what you would need to do is to use GetDC() to get a handle to your target window's device context, then use GetPixel() to get the information and finally ReleaseDC().