With Windows Presentation Foundation, if I have an HWND, how can I capture it\'s window as an image that I can manipulate and display?
You can:
CreateBitmap() to create a hBitmapGetDC() on the hWndBitBlt() the contents to the hBitmapReleaseDC()Imaging.CreateBitmapSourceFromHBitmap() to create a managed BitmapSourceDeleteObject() on the hBitmapBitmapSource as desiredSteps 1-4 and 6 use the Win32 API (GDI to be precise), Steps 5 and 7 are done using WPF