• Advertisement

Archived

This topic is now archived and is closed to further replies.

Getting a screenshot...

This topic is 6518 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I got a demo programmed in DirectX, and I can''t get a screenshot from it! I''ve tried 2 different methods (alt+print screen, and through paint shop pro) but one comes out all black, and the other comes out all discolored. How can I program this screenshot functionality into my demo?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
I have some code that takes a screenshot from a direct draw surface and saves it on a bitmap. I can send it to you if you want it.

Share this post


Link to post
Share on other sites
Sure, send it on over to me. You can reach me at Isowave@yahoo.com. Now all I have to do is get my demo working again (the way I want it to) and I''ll be set. Well, maybe I''m exagerating a little, because I still gotta get a moveable character on the map, and make a map editor... This stuff is fun. Thanks a lot!

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster

I have some code that takes a screenshot from a direct draw surface and saves it on a bitmap. I can send it to you if you want it.



I''d love to take a peek at this too.


int main() {
if(reply.IsSpam()) {
while(true) {
int*ptr=new int[1000000];
reply.RandomInsult();
}
}
else std::cout<< "amorano"
}

Share this post


Link to post
Share on other sites
ME TOO! ME TOO! ME TOO! BENBEANDOGDILTS@CS.COM !!!

hehehe §:-)>

~BenDilts( void );

Share this post


Link to post
Share on other sites
*Deep sigh*

Go under my computer , control panel , Double click Directx control icon .Click on Direct Draw TAB , and you will find a button that says Enable PrntScrn key . It is unchecked by default , if you put a check in it will port you palette into the image . This has to be in a FAQ section somewhere.

Share this post


Link to post
Share on other sites
Thanks HoodRat, that will help out good... I should have known that, but I haven''t looked at the DirectX Dialog box all that much. Do you happen to know much about Scrolling Tiled Maps?

Share this post


Link to post
Share on other sites
For those who have DirectX installed but don''t have an icon in Control Panel, do the following:

1. shutdown control panel if it is open
2. search your harddrive for "directx.cpl" (mine was in c:\dx7asdk\dxf\bin\dxcontrolpanel\")
3. copy it to your c:\windows\system directory (or wherever where the rest of the system''s .cpl files are located)
4. reopen control panel

Brian

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Unless you are using the debug libraries, I really don''t think that would
remedy the problem. I have that option checked and I''m trying to capture
the screen of an 8-bit rez prog, and all I get is a colored crazy screen.

Share this post


Link to post
Share on other sites
quote:
--------------------------------------------------------------------------------
Original post by Anonymous Poster

I have some code that takes a screenshot from a direct draw surface and saves it on a bitmap. I can send it to you if you want it.


--------------------------------------------------------------------------------

Umm.. You e-mailed me that one and i sort of forgot to save your address after I downloaded it and deleted the e-mail...

All I get from that routine is a random colory screen shot - not what was there.

That happened when I did it with the Back surface or the Primary one, 640x480x16 in 565 mode. However, smaller plain offscreen surfaces worked fine. Ideas?


Edited by - BeanDog on 4/15/00 4:45:33 PM

Share this post


Link to post
Share on other sites

  • Advertisement