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



Users browsing this thread: 1 Guest(s)