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 / Small program with small bug

Author
Message
NickH
16
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 13th Apr 2013 11:28
Hi, I've not used DBpro in quite some time, as I've got a new job which has focused my efforts on graphics and design. I'm creating a poster and decided that part of it would actually be best done in DBpro. I want to create a program that basically creates a bitmap and saves it. I want it to be able to be at the resolution that I need, but for some reason it's only outputting at 2048x2048, even though at this stage I only put in 1920x1080 as a test. Just wondering why it's not listening to me?



Need to print anything from a flyer to a poster or banner? Then visit www.bcsofficepoint.co.uk
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 13th Apr 2013 12:00
You could try this:



Setting the Texture flag to 3 allows no stretching, no filter and no colorkey. It might help.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 13th Apr 2013 12:08 Edited at: 13th Apr 2013 12:09
As you say, it's a small but very common bug. You need to add the extra flag to the get image command to stop the image being rescaled to the nearest higher powers of 2, i.e. use this:



On my system I also had to change the destination of the saved file but I guess that was OK on yours.

Edit Good morning Mobiius! You beat me to it you swine!
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 13th Apr 2013 12:21
lol.



I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
NickH
16
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 13th Apr 2013 20:10
Thank you! As usual someone helps me quickly I wish all bugs were so easy to cure!

Need to print anything from a flyer to a poster or banner? Then visit www.bcsofficepoint.co.uk

Login to post a reply

Server time is: 2025-05-17 21:10:10
Your offset time is: 2025-05-17 21:10:10