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.

Dark GDK / dbSaveBitmap does not work.

Author
Message
Pumbaa
16
Years of Service
User Offline
Joined: 29th Feb 2008
Location:
Posted: 29th Feb 2008 19:47
Well, my problem is: The following code does just nothing.
It doesn't save anything.



Any Ideas? =)
DEastham
18
Years of Service
User Offline
Joined: 9th Sep 2006
Location:
Posted: 1st Apr 2008 13:47
You need to create an image to copy the bitmap to. Creating a bitmap just makes a surface to draw on, but creating an image lets you use that surface for something (i.e. either a texture or a saved image).

dbCreateBitmap(2,640,480);
dbSetCurrentBitmap(2);
dbBox(50,50,600,400);
dbGetImage(1,0,0,640,480,1);
dbSaveImage("c:\\test.bmp",1);

Login to post a reply

Server time is: 2024-09-29 17:25:23
Your offset time is: 2024-09-29 17:25:23