QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: johnno56 on April 09, 2022, 10:23:33 pm

Title: Scaling
Post by: johnno56 on April 09, 2022, 10:23:33 pm
I happened to be resurrecting some 'old' QB programs, mainly dealing with particles, and noticed an annoying recurrence. Most of them use a screen size of around 320x200+...  On my screen, 1920x1080, it seems to be no bigger than a business card in comparison...

My question is; Does QB64 have an inbuilt function to scale the size of the image so that the 320x240 display can 'stretched' to fit a larger screen? It is not an issue or a big deal. I am just curious to know.

J
Title: Re: Scaling
Post by: SMcNeill on April 09, 2022, 11:04:57 pm
I happened to be resurrecting some 'old' QB programs, mainly dealing with particles, and noticed an annoying recurrence. Most of them use a screen size of around 320x200+...  On my screen, 1920x1080, it seems to be no bigger than a business card in comparison...

My question is; Does QB64 have an inbuilt function to scale the size of the image so that the 320x240 display can 'stretched' to fit a larger screen? It is not an issue or a big deal. I am just curious to know.

J

$RESIZE is what you're looking for.
Title: Re: Scaling
Post by: SMcNeill on April 09, 2022, 11:10:19 pm
Quick demo: 
Code: QB64: [Select]
  1. Print "Hello SCALING World!"
  2.     _Limit 30
  3.  

Compile.  Run.  Grab corner of screen with mouse and drag to desired size so you can see what's on the screen. 
Title: Re: Scaling
Post by: johnno56 on April 09, 2022, 11:43:43 pm
Thank you, Steve. The demo did as advertised... Cool... Now to find those old programs again....

Much appreciated.

J