Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I can't get over this...
#2
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

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
Reply


Messages In This Thread
I can't get over this... - by Pete - 03-07-2024, 10:57 PM
RE: I can't get over this... - by SMcNeill - 03-07-2024, 11:23 PM
RE: I can't get over this... - by Kernelpanic - 03-07-2024, 11:36 PM
RE: I can't get over this... - by SMcNeill - 03-08-2024, 12:16 AM
RE: I can't get over this... - by Pete - 03-07-2024, 11:44 PM
RE: I can't get over this... - by Pete - 03-08-2024, 01:30 AM
RE: I can't get over this... - by SMcNeill - 03-08-2024, 01:49 AM
RE: I can't get over this... - by Pete - 03-08-2024, 02:12 AM



Users browsing this thread: 1 Guest(s)