Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_SETALPHA Question
#6
(09-29-2023, 05:15 AM)SMcNeill Wrote: SETALPHA Level%, _RGBA32(255, 0, 0, 0) TO _RGBA32(255,0,0,255), Image&

More flexibility than just assuming "do them all".   Wink

What if you only wanted to change a single value's alpha?
Then that is where _RGBA32 would come into play. I definitely see the benefit of controlling individual alpha levels. What I envision is when _SETALPHA sees _RGB32 it assumes all alpha levels for the given color instead of the default 255 that is assumed with _RGB32.

_SETALPHA 0, _RGB32(255, 0, 0), Image& '           all alpha levels of red set to 0
_SETALPHA 0, _RGBA32(255, 0, 0, 255), Image& ' only alpha level 255 of red set to 0

I don't know, perhaps I'm overthinking this.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
_SETALPHA Question - by TerryRitchie - 09-29-2023, 04:08 AM
RE: _SETALPHA Question - by DSMan195276 - 09-29-2023, 04:21 AM
RE: _SETALPHA Question - by TerryRitchie - 09-29-2023, 04:33 AM
RE: _SETALPHA Question - by TerryRitchie - 09-29-2023, 05:01 AM
RE: _SETALPHA Question - by SMcNeill - 09-29-2023, 05:15 AM
RE: _SETALPHA Question - by TerryRitchie - 09-29-2023, 05:39 AM
RE: _SETALPHA Question - by SMcNeill - 09-29-2023, 07:19 AM
RE: _SETALPHA Question - by SMcNeill - 09-29-2023, 07:24 AM
RE: _SETALPHA Question - by DSMan195276 - 09-29-2023, 05:11 PM
RE: _SETALPHA Question - by TerryRitchie - 09-29-2023, 05:21 PM
RE: _SETALPHA Question - by TerryRitchie - 09-29-2023, 06:19 PM
RE: _SETALPHA Question - by SMcNeill - 09-29-2023, 06:41 PM
RE: _SETALPHA Question - by SMcNeill - 09-29-2023, 06:56 PM
RE: _SETALPHA Question - by TerryRitchie - 09-29-2023, 07:07 PM
RE: _SETALPHA Question - by TerryRitchie - 09-30-2023, 03:37 AM
RE: _SETALPHA Question - by SMcNeill - 09-30-2023, 11:19 AM
RE: _SETALPHA Question - by TerryRitchie - 09-30-2023, 02:00 PM



Users browsing this thread: 6 Guest(s)