Image Context

BlitzPlus Forums/BlitzPlus Programming/Image Context

Is there any way to copyrect or otherwise get at the image in another applications window. This has got me stumped.

You might want to talk to Scouse (tom speed) on IRC.

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

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().