Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any way to use transparency in SCREEN 0?
#21
@Sprezzo

Same old stuff, but gathering it all up into libraries. Well, old but with the added new stuff like hardware acceleration to add some effects in SCREEN 0 that were not possible in the old days.

https://qb64phoenix.com/forum/showthread.php?tid=3402

1) Left click on any character in the sample text input box at bottom of demo screen.
2) Right click.
3) Hover the mouse near the top of the popup, depress the left mouse button, and start dragging the window around the screen.

There are rabbit holes everywhere to fix this, but nothing I've found is straight forward enough to bother with. Ironically _SCREENIMAGE could be used  with other statements to make a temporary screen under the popup, which is a full hardware image. That would allow for a software popup with a hardware opaque shadow to correctly display. The problem is _SCREENIMAGE is dependent on exact coordinates of the QB64 window, minus the title bar. It would probably require API additions to track that, and my hunch is the screen contents wouldn't be perfectly aligned anymore, but really, really close. After the popup is closed, a copy of the old software screen would be put back, and the hardware images would return as the program cycles through their display statements. I wish _COPYIMAGE had this ability to capture the QB64 window contents in SCREEN 0 like _SCREENIMAGE does for the desktop.

Edit Update: Popup shadow works great now! I was able to incorporate Steve's _SaveImage idea.

Pete

- Give Bill enough string and he'll tunnel himself.


Attached Files Image(s)
           
Reply


Messages In This Thread
RE: Any way to use transparency in SCREEN 0? - by Pete - 03-30-2025, 01:17 PM



Users browsing this thread: 1 Guest(s)