21 Replies - 1479 Views - Last Post: 03 February 2012 - 01:49 PM
#1
Call of Duty 2 application for screenshot
Posted 02 February 2012 - 01:55 AM
How to take screenshots of the DirectX game?
Please could you help me?
Thank you!
Replies To: Call of Duty 2 application for screenshot
#2
Re: Call of Duty 2 application for screenshot
Posted 02 February 2012 - 02:25 AM
#3
Re: Call of Duty 2 application for screenshot
Posted 02 February 2012 - 02:29 AM
nK0de, on 02 February 2012 - 02:25 AM, said:
Dim bounds As Rectangle
Dim screenshot As System.Drawing.Bitmap
Dim graph As Graphics
bounds = Screen.PrimaryScreen.Bounds
screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
graph = Graphics.FromImage(screenshot)
graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
PictureBox1.Image = screenshot
takes only the desktop image, don't working for games.
#4
Re: Call of Duty 2 application for screenshot
Posted 02 February 2012 - 04:26 AM
#5
Re: Call of Duty 2 application for screenshot
Posted 02 February 2012 - 09:59 AM
#6
Re: Call of Duty 2 application for screenshot
Posted 03 February 2012 - 02:54 AM
My problem:
I make a program for taking screenshots from the game, this is the current code that I use:
Dim bounds As Rectangle
Dim screenshot As System.Drawing.Bitmap
Dim graph As Graphics
bounds = Screen.PrimaryScreen.Bounds
screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
graph = Graphics.FromImage(screenshot)
graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
PictureBox1.Image = screenshot
and it works great when i need to take a desktop screenshot, but when i try take a game screenshot it does not work! I read on the internet and it says that I need to take screenshots from DirectX. The problem is that I never worked with DirectX and I need your help, any help is welcome if it is related to my problem, I would appreciate if you have some kind of example.
Thank you!
#8
Re: Call of Duty 2 application for screenshot
Posted 03 February 2012 - 10:44 AM
tlhIn`toq, on 03 February 2012 - 07:32 AM, said:
I didn't ask you for the software, i ask you for the help me how to make my own software. Taking DirectX screenshot is only one part of the software and i only don't know this part, other parts i know how to make!
So if you can help me then help me.
Thank you!
#9
Re: Call of Duty 2 application for screenshot
Posted 03 February 2012 - 10:48 AM
#10
Re: Call of Duty 2 application for screenshot
Posted 03 February 2012 - 10:53 AM
Neph1x, on 03 February 2012 - 11:14 PM, said:
tlhIn`toq, on 03 February 2012 - 07:32 AM, said:
I didn't ask you for the software, i ask you for the help me how to make my own software. Taking DirectX screenshot is only one part of the software and i only don't know this part, other parts i know how to make!
So if you can help me then help me.
Thank you!
watch your tone if you want people to help you.
#11
Re: Call of Duty 2 application for screenshot
Posted 03 February 2012 - 10:54 AM
Neph1x, on 03 February 2012 - 11:44 AM, said:
tlhIn`toq, on 03 February 2012 - 07:32 AM, said:
I didn't ask you for the software, i ask you for the help me how to make my own software. Taking DirectX screenshot is only one part of the software and i only don't know this part, other parts i know how to make!
So if you can help me then help me.
Thank you!
Just a little bit of an over reaction there, dontcha think? I know we all do way too much caffeine now and again, but I might suggest you cut back a bit.
Since you have no attempt to code this portion despite the vast number of tutorials availabe on the internet, I can only assume you could use a little help first in how to do better research.
Finding answers to specific problems:
Sometimes just knowing where to look can make all the difference. Google is your friend.
Search with either "C#" or "MSDN" as the first word: "MSDN Picturebox", "C# Custom Events", "MSDN timer" etc.
How to do a good search that will get you targeted answers.
Using these suggestion I searched for "DirectX C# screen capture" and was rewarded with numerous tutorials and how-to articles.
It would be silly for us to either repeat all that hard work, or to plagiarize it by re-posting it here.
Please take a try at coding a solution now that you have been given a direction to research. Once you have updated your code if you are still having specific issues please post in this thread rather than starting a new one.
#12
Re: Call of Duty 2 application for screenshot
Posted 03 February 2012 - 11:00 AM
tlhIn`toq, on 03 February 2012 - 10:54 AM, said:
Neph1x, on 03 February 2012 - 11:44 AM, said:
tlhIn`toq, on 03 February 2012 - 07:32 AM, said:
I didn't ask you for the software, i ask you for the help me how to make my own software. Taking DirectX screenshot is only one part of the software and i only don't know this part, other parts i know how to make!
So if you can help me then help me.
Thank you!
Just a little bit of an over reaction there, dontcha think? I know we all do way too much caffeine now and again, but I might suggest you cut back a bit.
Since you have no attempt to code this portion despite the vast number of tutorials availabe on the internet, I can only assume you could use a little help first in how to do better research.
Finding answers to specific problems:
Sometimes just knowing where to look can make all the difference. Google is your friend.
Search with either "C#" or "MSDN" as the first word: "MSDN Picturebox", "C# Custom Events", "MSDN timer" etc.
How to do a good search that will get you targeted answers.
Using these suggestion I searched for "DirectX C# screen capture" and was rewarded with numerous tutorials and how-to articles.
It would be silly for us to either repeat all that hard work, or to plagiarize it by re-posting it here.
Please take a try at coding a solution now that you have been given a direction to research. Once you have updated your code if you are still having specific issues please post in this thread rather than starting a new one.
Sorry, this problem annoys me...Thank you for any help!
#13
Re: Call of Duty 2 application for screenshot
Posted 03 February 2012 - 11:35 AM
#14
Re: Call of Duty 2 application for screenshot
Posted 03 February 2012 - 12:02 PM
#15
Re: Call of Duty 2 application for screenshot
Posted 03 February 2012 - 12:16 PM
Quote
Can you say that again in grown up English? Because it sounds like you are accusing trevster of using cheat software.
You're making anti-cheat software for Call of Duty 2 ? I would have thought the developers would have such things.
Or are you saying you are trying to get around built-in anti-snapshot software that is already blocking pntscrn
|
|

New Topic/Question
Reply




MultiQuote








|