This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to screen capture a running full screen DirectX program in Java?

 
Dupond Marc
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have been trying several ways to capture a full screen DirectX program in java, namely using Robot library. Sadly all worked but not while the game/program was running in full screen.

#i) First, I tried :

Results:
-> It works perfectly in no full screen mode
-> in full screen it returns black picture


#ii) Then I tried to press a key, since the game is providing some screenshot future, typing F6 on the keybord:

Results:
-> No screenshot is saved. BUT when I type "by hand" the key F6, screenshot is taken by the game, as usual.


#iii) I also tried to simulate IMPR SCR key.
Results:
-> Once again, it works perfectly when the game is not in full screen, but as soon as I run it in full screen, nothing is taken.


I don't know what to do any-more...
I have read some stuff about this, which may help me: javacv - Java interface to OpenCV and more - Google Project Hosting but I have no idea on how to approach this. If anybody could provide me some sample code working or if you could help me to find any clue for taking a screenshot of a directx full screen running program, I would be most grateful.
Thank you for reading.
 
Dupond Marc
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


As explained, I don't know anything about Java forum and if they are active or not, so yes, I won't deny it, I tried in 3 forums, hoping someone could help me in one of these. For now, none answered.
I apologize if it seems a bit rude or inconvenient, but it has been 3 days I searched for this problem hardly sleeping, and by resignation I posted like in these forums, hoping for a solution.

I suppose I won't receive any here after this underlining.. I am really sorry.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47279
52
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apologies accepted. I shall move this discussion because it is too difficult for “beginning”

I am sure you will receive an answer … if anybody here knows it at all.
 
Dupond Marc
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Apologies accepted. I shall move this discussion because it is too difficult for “beginning”

I am sure you will receive an answer … if anybody here knows it at all.

Thank you very much for your consideration. I will wait for an answer then.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47279
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dupond Marc wrote: . . . Thank you very much for your consideration. I will wait for an answer then.
I don’t know the answer myself, I am afraid.
 
K. Tsang
Bartender
Pie
Posts: 3222
12
Android Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to check your BufferedImage is getting the full screen size. Below link is somewhat different for BufferedImage.
here

The effect may be the same, I'm not sure.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic