Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enlarging window for older BAS programs (ie. Screen 7 mode)
#4
(12-24-2025, 07:32 PM)bplus Wrote: Yes you can now create custom sized screens

Screen _NewImage(myScreenWidthPixels%, myScreenHeightPixels%, MyColorPallet%)

MyColorpallet% = 12, 256, 32
12 is 16 color old QB colors
256 is pallet stuff I dont use so cant describe well
32 is millions of color options using _RGB32(r, g, b, alpha)

Oh yes! for old programs use Petr's suggestion but you might need a little _Delay after Screen statement before going full screen.
warning: you may experience some distortion of circles and squares.

   I've been doing a lot of Palette Stuff so I'll describe 256.   
In 32 bit mode if you do a _MEMIMAGE the Image buffer pixels map to an Array of Long each Pixel stored in RGBA format.

In 256 palette mode Each the Pixels map to an array of _unsigned _byte and the Palette holds 256 (Indice's 0 to 255) Palette Descriptors in Long RGBA format
The Pixel Bytes are an Index into the Palette !       The Palette values can be set with  _PaletteColor Index, RGBAVal and retrieved with the  _PaletteColor(Indx) function !

If doing a _LoadImage("image.bmp", 256)  a default palette is used for image mapping
If doing a _LoadImage("image.bmp", 257) a more optimized adaptive palette is used !
Reply


Messages In This Thread
RE: Enlarging window for older BAS programs (ie. Screen 7 mode) - by ahenry3068 - 12-24-2025, 08:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Running QB64 v2 InForm Programs on PE Magdha 2 358 11-19-2025, 11:10 AM
Last Post: Magdha
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 11 1,058 11-10-2025, 07:23 PM
Last Post: madscijr
  is there any way to position the inputbox$ window? madscijr 21 1,643 11-06-2025, 09:54 PM
Last Post: madscijr
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 0 217 10-26-2025, 06:58 PM
Last Post: madscijr
  Play wav file in the background without a window on the forground Rudy M 12 1,140 09-18-2025, 07:08 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)