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 / Question about get image and save image commands.

Author
Message
Takis76
21
Years of Service
User Offline
Joined: 9th Apr 2005
Location: Greece
Posted: 26th Feb 2011 14:43
Hi my friends,

I would like to ask one question about get image and save image.

I have create a small routine which create a screenshot of my game.

the code works well , I capture my screenshot of my game and then I save it as screenshot.bmp image file.

There is one small problem and I don't know how does this happen.

The screen resolution of my game is 640x400 and the saved image
is 1024x512.





Is it possible the image to be saved in 640x400? instead of 1024x512


Thank you
Jeff Miller
21
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: New Jersey, USA
Posted: 26th Feb 2011 15:23
I would suggest adding a 5th argument, ",1", at the end of the 'get image command'. The program may be attempting to save the image at dimensions that are a power of 2. Adding the flag may enable saving at the precise resolution you require.
Takis76
21
Years of Service
User Offline
Joined: 9th Apr 2005
Location: Greece
Posted: 27th Feb 2011 00:53
Thank you very much it worked...

Login to post a reply

Server time is: 2026-07-16 01:44:09
Your offset time is: 2026-07-16 01:44:09