Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No warning to mix screen 0 and screen graphic commands!
#6
(06-14-2023, 12:40 PM)TempodiBasic Wrote: If this is true I can try to set alpha channel the instant before using _putimage and ths must garantee me to get a half transparent image copied. But this code demonstrates that it is not so.
No changements if I set before o after PRINT on S2.
Ah, there's one more catch that I missed - the color provided to _SetAlpha also has its own alpha value which must match the existing value. IE. You're using 0 as the color, which is black with an alpha 0. Since none of the black pixels currently have an alpha 0 your _SetAlpha command doesn't end up doing anything. What you really want is this:

Code: (Select All)
_SetAlpha 100, _RGBA32(0, 0, 0, 0) TO _RGBA32(0, 0, 0, 255), S2
That modifies all pixels with a color within that range, which covers all black pixels regardless of the alpha value.
Reply


Messages In This Thread
RE: No warning to mix screen 0 and screen graphic commands! - by DSMan195276 - 06-14-2023, 01:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Enlarging window for older BAS programs (ie. Screen 7 mode) paulel 5 415 12-24-2025, 09:36 PM
Last Post: paulel
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 11 1,080 11-10-2025, 07:23 PM
Last Post: madscijr
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 0 227 10-26-2025, 06:58 PM
Last Post: madscijr
  screen stretch pmackay 5 670 08-23-2025, 05:26 AM
Last Post: pmackay
Photo from png tile, create symmetrical screen image hsiangch_ong 11 979 08-23-2025, 01:23 AM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)