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.

Newcomers DBPro Corner / Save Bitmap

Author
Message
Kikkeli
20
Years of Service
User Offline
Joined: 11th Feb 2004
Location:
Posted: 20th Feb 2004 18:44 Edited at: 20th Feb 2004 18:46
Hello,



What is wrong? I get only error message (Runtime Error 116 - This Command is obsolete at line 25) when running my program and trying to save my bitmap to file (key "s").

25th line: SAVE BITMAP "output.bmp", 0 .

Well, what to do? Does anyone have any dll or code to do the "ScreenShot"?

, Thank you

DBP43V3R
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 20th Feb 2004 20:19
you are using Pro, the tutorial is for classic, to save images with pro you have to make the bitmap into an image first since pro only has the save image command (replaced in p5 or later IIRC) so the save section would become

rem this is history >>>>> SAVE BITMAP "output.bmp", 0 <<<<<<<<<<
get image 1,0,0,bitmap width(0)-1,bitmap height(0)-1
save image "output.bmp",1
END

cheers.

Mentor.

System spec : Pentium 3.0Ghz, 512MB DDR, 2x160Gb HD (using icewave hd coolers ), DVD RW/CD RW (all modes), multimedia front panel, 6 way surround sound, ATI radeon 9800Pro 128mb.
Kikkeli
20
Years of Service
User Offline
Joined: 11th Feb 2004
Location:
Posted: 21st Feb 2004 10:31
My VoodooIII doesn't support DirectX 9, so i can't upgrade my DBPro to 5.2. Im using 4.1 or 4.2 right now. So, that code don't work. .

Is there any .dll to do it?

, Thank you

DBP43V3R
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st Feb 2004 17:05
There used to be a DLL that did it if you were a customer of Real Game Tools in the US.

I wrote a SaveBitmap function and posted it in the CodeBase : http://developer.thegamecreators.com/?m=codebase_view&i=c6a376253a019691f5fcc97de1c5247a - it's near the end

For free Plug-ins, source and the DBPro Interface library for Visual C++ 6 and .NET
http://www.matrix1.demon.co.uk

Login to post a reply

Server time is: 2024-11-26 05:30:08
Your offset time is: 2024-11-26 05:30:08