Author Topic: Scaling  (Read 1491 times)

0 Members and 1 Guest are viewing this topic.

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
Scaling
« 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
Logic is the beginning of wisdom.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • Steve’s QB64 Archive Forum
Re: Scaling
« Reply #1 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.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • Steve’s QB64 Archive Forum
Re: Scaling
« Reply #2 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. 
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
Re: Scaling
« Reply #3 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
Logic is the beginning of wisdom.