Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
AnswerRe: Combining an SDK with C# through Visual Studio Pin
stancrm27-Aug-09 1:53
stancrm27-Aug-09 1:53 
GeneralRe: Combining an SDK with C# through Visual Studio Pin
Steve-Co27-Aug-09 2:22
Steve-Co27-Aug-09 2:22 
GeneralRe: Combining an SDK with C# through Visual Studio Pin
stancrm27-Aug-09 2:34
stancrm27-Aug-09 2:34 
GeneralRe: Combining an SDK with C# through Visual Studio Pin
Steve-Co27-Aug-09 3:12
Steve-Co27-Aug-09 3:12 
GeneralRe: Combining an SDK with C# through Visual Studio Pin
stancrm27-Aug-09 3:18
stancrm27-Aug-09 3:18 
GeneralRe: Combining an SDK with C# through Visual Studio Pin
Steve-Co27-Aug-09 3:26
Steve-Co27-Aug-09 3:26 
GeneralRe: Combining an SDK with C# through Visual Studio Pin
stancrm27-Aug-09 3:46
stancrm27-Aug-09 3:46 
QuestionTaking screenshot from a DX game Pin
SimpleData27-Aug-09 1:43
SimpleData27-Aug-09 1:43 
Hi Maybe this is the second or third time I'm asking this question here and other programming platforms, yet I still don't have a satisfacting solution/answer.

I would like to be able to get screenshots from a DX game without any black/blank screenshot or desktop views(game is on foreground but desktop is saved in screenshot).

Currently I am using this code to take screenshots, which works most of the time. On XP if anti-aliasing is enabled in game I sometimes get black screenshots. On Vista I sometimes get black screenshots. On 7 if aero is not disabled I get black screenshots all the time or desktop views.
int screenWidth = Screen.GetBounds(new Point(0, 0)).Width;
int screenHeight = Screen.GetBounds(new Point(0, 0)).Height;
Bitmap bmpScreenShot = new Bitmap(screenWidth, screenHeight);
Graphics gfx = Graphics.FromImage((Image)bmpScreenShot);
gfx.CopyFromScreen(0, 0, 0, 0, new Size(screenWidth, screenHeight));
bmpScreenShot.Save("test.jpg", ImageFormat.Jpeg);


I need to take screenshots without these problems without using SlimDX (and other external libraries needed to be installed). But an external DLL is OK.

Thank you. I hope I can solve this with your help.
AnswerRe: Taking screenshot from a DX game Pin
Dave Kreskowiak27-Aug-09 3:49
mveDave Kreskowiak27-Aug-09 3:49 
GeneralRe: Taking screenshot from a DX game Pin
SimpleData27-Aug-09 3:56
SimpleData27-Aug-09 3:56 
GeneralRe: Taking screenshot from a DX game Pin
Dave Kreskowiak27-Aug-09 12:46
mveDave Kreskowiak27-Aug-09 12:46 
QuestionAccess RS-232 in C# using VISA Pin
Member 637782627-Aug-09 1:34
Member 637782627-Aug-09 1:34 
AnswerRe: Access RS-232 in C# using VISA Pin
stancrm27-Aug-09 1:46
stancrm27-Aug-09 1:46 
AnswerRe: Access RS-232 in C# using VISA Pin
Alan N27-Aug-09 2:21
Alan N27-Aug-09 2:21 
GeneralRe: Access RS-232 in C# using VISA Pin
Member 637782627-Aug-09 4:04
Member 637782627-Aug-09 4:04 
GeneralRe: Access RS-232 in C# using VISA Pin
zafersavas27-Aug-09 9:12
zafersavas27-Aug-09 9:12 
QuestionRetaining focus after postback Pin
rcampbell1227-Aug-09 1:25
rcampbell1227-Aug-09 1:25 
AnswerRe: Retaining focus after postback Pin
EliottA27-Aug-09 2:57
EliottA27-Aug-09 2:57 
GeneralRe: Retaining focus after postback Pin
rcampbell1227-Aug-09 6:02
rcampbell1227-Aug-09 6:02 
Questionglobalizatin Pin
Rekha Achariya27-Aug-09 0:53
Rekha Achariya27-Aug-09 0:53 
AnswerRe: globalizatin Pin
Henry Minute27-Aug-09 1:01
Henry Minute27-Aug-09 1:01 
JokeRe: globalizatin Pin
kKamel27-Aug-09 1:03
kKamel27-Aug-09 1:03 
JokeRe: globalizatin Pin
Arun Jacob27-Aug-09 1:06
Arun Jacob27-Aug-09 1:06 
AnswerRe: globalizatin Pin
Arun Jacob27-Aug-09 1:04
Arun Jacob27-Aug-09 1:04 
AnswerRe: globalizatin Pin
Trapper-Hell27-Aug-09 1:14
Trapper-Hell27-Aug-09 1:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.