Re: Capturing the desktop image
I can get that far, but then how do I retrieve the pixel data from hMemDC?
Can I just peek the device directly? I can't utilize win32 structures in
Exotica.. I don't know how anyways.. I'm sure there's a way...
If I understand correctly, that WILL blit the desktop to my program window..
but I'm still not able to manipulate it.. Any contents of the window will be
overwritten with the DirectX data..
If I can get the pixel data of the desktop, I can copy it to a DierectX
drawing surface, and use it as my background..
Chris
> Did you try:
>
> create a RECT structure.
>
> Desk_handle = GetDeskTop()
> GetClientArea(Desk_handle, address_of_RECT)
>
> Then:
>
> DC = GetDC( hWnd )
> hMemDC = CreateCompatibleDC( hDC )
> hBckgrdBitmap = CreateCompatibleBitmap( hDC, rect.right,
> rect.bottom )
> SelectObject( hMemDC, hBckgrdBitmap )
> BitBlt( hMemDC, 0, 0, rect.right, rect.bottom, hDC, 0, 0, SRCCOPY )
> DeleteDC( hMemDC )
> ReleaseDC( hWnd, hDC )
>
> Bernie
>
>
>
>
>
|
Not Categorized, Please Help
|
|