12-24-2025, 08:15 PM
(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 !

