-
September 5th, 2009, 04:06 AM
#1
Capture windowed DirectX application to bitmap
It is possible to screencapture another direct x application using destop's DC to HBITMAP.
But is there a way to capture from partially covered DirectX window?
-
September 6th, 2009, 08:19 AM
#2
Re: Capture windowed DirectX application to bitmap
Never tried with DirectX but I suppose it should work.
If you mean you're trying to capture the content of a screen partially covered by your own appication, the techique is to hide your own window, perform the capture, then show your window again.
Before performing the capture, you may need a short delay to allow DirectX to repaint the area that was covered by your window.
-
September 6th, 2009, 09:33 AM
#3
Re: Capture windowed DirectX application to bitmap
You can use this funtion:
Code:
HWND WindowFromPoint(Point p)
to get the window's handle, you pass an x,y point on the screen which is also on the application you want to capture.
Then use
Code:
HDC GetDC(HWND hWnd)
to get the HDC of the window
-
September 8th, 2009, 09:42 AM
#4
Re: Capture windowed DirectX application to bitmap
This may get you started on what you want to do.
Gort...Klaatu, Barada Nikto!
-
September 10th, 2009, 03:21 PM
#5
Re: Capture windowed DirectX application to bitmap
Originally Posted by Mike Harnad
This may get you started on what you want to do.
Wow, thank you. This will really help alot!
-
September 10th, 2009, 03:42 PM
#6
Re: Capture windowed DirectX application to bitmap
The problem is to get IDirect3DSurface9 from another application.
I'd like to know how Fraps works. I can start recording any windowed DirectX application, then change focus to another window, say, notepad. And i can move notepad so it partially or fully cover DirectX application, but Fraps still continue to record that application.
-
September 10th, 2009, 07:07 PM
#7
Re: Capture windowed DirectX application to bitmap
Read the direct memory involve. Although that could be on-board the graphics card, or else system memory. Kind of defeats the purpose of DirectX.
I doubt you'll be able to record it, either
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|