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.

DarkBASIC Professional Discussion / Command Save Bitmap

Author
Message
Brux
14
Years of Service
User Offline
Joined: 12th Oct 2011
Location:
Posted: 19th Jan 2012 15:00
Save Bitmap Filename is obsolete.
strange very strange, because I do not understand '
But now How else can I use command? ?:-
Thanks.
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 19th Jan 2012 17:33 Edited at: 19th Jan 2012 17:35
As far as I can tell Darkbasic Professional has never had a Save Bitmap Command. However, you can copy the bitmap to an image then save the image.

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 19th Jan 2012 17:36 Edited at: 19th Jan 2012 17:38
[edit] WickedX ninja posted...

You can use save image. If you have the bitmap, convert it to an image and save it like this:



I remember there being some problem with the saved image scaling itself to a dimension with the base of 2 (like 128x128, 256x256 etc. but nothing in-between, even if your bitmap was something like 5345x823). There's some flag you need to set and I don't know what or where Could someone post a solution to that?

TheComet

WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 19th Jan 2012 19:22
get image - no stretching, no filter, colorkey

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 19th Jan 2012 23:15
Quote: "As far as I can tell Darkbasic Professional has never had a Save Bitmap Command. "


Yes it did, which is why the following compiles:



A bit pointless because the exe file runs with the error that Brux mentioned. It was removed ages ago (6 years ago?) with the advice to use save image instead as mentioned by others above.
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 19th Jan 2012 23:37
Wow, I did not know that.

Quote: "It was removed ages ago (6 years ago?)"


That's a little before my time here.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 20th Jan 2012 00:11
Quote: "That's a little before my time here."


You'll be amazed at the things lying around in the dustbin of history.
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 20th Jan 2012 00:24 Edited at: 20th Jan 2012 00:38
Earlier I was poking around the DBPro source code and found a MakePyramid function. Using ResEdit I altered the String Table for the DBProBasic3DDebug.dll and got the command working in Darkbasic Professional. Has this command ever been included?

Edit: Attached is the modified dll.
To use: MAKE OBJECT PYRAMID Object Number, Size
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 20th Jan 2012 03:24
This thread... WOW!

BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 20th Jan 2012 11:27
...and of course there is MAKE GAME, highly underrated

Login to post a reply

Server time is: 2026-07-09 23:12:34
Your offset time is: 2026-07-09 23:12:34