03-07-2024, 11:23 PM
Code: (Select All)
Screen 0, 0, 0, 0
Width 80, 42
Palette 5, 63
_PaletteColor 0, _RGBA32(0, 0, 0, 0)
Cls , 0
_Delay .1
_ScreenMove 0, 0
_DisplayOrder _Hardware , _Software ' Reversing this order just eliminates the hardware image.
Overlay = _NewImage(_Width * _FontWidth, _Height * _FontHeight, 32)
x% = 7 * 16: y% = 3 * 8
_Dest Overlay
_Display
img& = _LoadImage("z:\activate-static.png", 32)
_PutImage (x%, y%), img&, Overlay
Overlay_Hardware = _CopyImage(Overlay, 33)
_PutImage (0, 0), Overlay_Hardware
_Dest 0
'Color 0, 5
Color 5, 0
Locate 3, 10, 1, 7, 30
Print "sakf sfkj safjsf sfjsf";
_Display
Sleep
One major point of interest here:
SCREEN 0 has no alpha channel natively to any of the colors in it. The whole screen is FULL ALPHA BLACK (_RGBA(255, 0, 0, 0) for reference), so you can't print below that screen. Well, you can, but then you just immediately cover it up with black...
Think of it as painting a picture on your wall, and then painting the wall in black paint. You just completely cover and conceal the picture you painted.
You've got to set your overpaint to be a transparent clear coat. Paint your picture, then clear coat over it to preserve it.
![Wink Wink](https://qb64phoenix.com/forum/images/smilies/wink.png)
NOTE in the above, I used _PALETTECOLOR to change BLACK to TRANSPARENT BLACK. Now you can lay the software screen over the hardware screen, and have no real issues.
![Smile Smile](https://qb64phoenix.com/forum/images/smilies/smile.png)