Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Screenshots in the .bmp format

Author
Message
Gen
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Oklahoma, USA
Posted: 13th Jul 2004 18:12 Edited at: 13th Jul 2004 18:15
Here is a function to take screenshots in the bitmap file format. This was like my fourth review and so far it appears to be working.
It works with DB Pro but have not tried it with DB Classic.

Any questions let me know.

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 14th Jul 2004 00:13
Cool

Maybe the save image function'd make your life easier? Or even save bitmap in DB standard?

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
DeepBlue
21
Years of Service
User Offline
Joined: 17th May 2003
Location: A little box in the UK
Posted: 14th Jul 2004 00:21
Srry Gen but you made a lot of work for yourself.

Here just knocked this up in 5 mins that will save as a bmp,jpeg,dds or dib. Works in DBP & tested very quickly in DBC.



Still nice code though.

DeepBlue

The coder formerly known as Twynklet.
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 15th Jul 2004 12:21
That doesn't work with my DBP. It takes forever and makes a colorful, yet fuzzy .bmp file. I have DBP 5.5

Gen
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Oklahoma, USA
Posted: 15th Jul 2004 12:34
It worked in 5.4... I didnt know 5.5 was out yet and im on my way to get it.

Ill check up on it.

Nice code DeepBlue.
I got bored and thought i play with the bmp format.
MasterInsan0
21
Years of Service
User Offline
Joined: 14th May 2003
Location: United States
Posted: 17th Jul 2004 15:28
Hmm...it doesn't seem to work with my game, but perhaps that's because I'm using sprites?

Father Anderson
20
Years of Service
User Offline
Joined: 28th Jul 2004
Location: I\'m not so sure...
Posted: 10th Aug 2004 03:02
Maybe I should try this baby with my new FPS. Ill try it out in DBC once i get a minute.
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 17th Aug 2004 08:12
I tried Gen's code but unfortunately it didn't work correctly on my 'puter.

The code I use to take a screenshot is:



Cheers

Philip

What do you mean, bears aren't supposed to wear hats and a tie? P3.2ghz / 1 gig / GeForce FX 5900 128meg / WinXP home
Vues3d on Kalimee
20
Years of Service
User Offline
Joined: 12th May 2004
Location: NYON (SWITZERLAND)
Posted: 20th Aug 2004 21:55
DBPro doesnt save "JPG" files due to the compression rate.
If you try to save your image in jpg format, it will crash & if you have a look into the folder where the picture must be saved, you will see that the image is only partially done.

Guido
http://www.vues3d.com
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 21st Aug 2004 01:42
Vues3d, thats not true. It works like a charm here (but the quality is awfull, but the compression is NICE), what version of dbpro are you using?



Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Aug 2004 02:14
I used saved image to create a heightmap from a matrix. The output looks exactly the same as the original heightmap I used to create the matrix with. Works fine for me.

Not exactly a screen capture though.


"eureka" - Archimedes

Login to post a reply

Server time is: 2024-11-23 20:00:25
Your offset time is: 2024-11-23 20:00:25