Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No warning to mix screen 0 and screen graphic commands!
#9
(06-16-2023, 03:54 PM)DSMan195276 Wrote:
(06-16-2023, 01:51 PM)TempodiBasic Wrote: if _SETALPHA works on all the image why does not do this work when we omit a range of color to say all colors into the picture?
Well, you never did that Big Grin You were doing `_SetAlpha 100, 0` which is equivalent to `_SetAlpha 100, _RGBA32(0, 0, 0, 0)`, a specific color value. If you want to set the alpha for every pixel regardless of color I believe you can omit the second argument all together and do `_SetAlpha 100`. Or alternatively with an image, `_SetAlpha 100, , S2`.
Right! You are right!
using _setalpha transparency%,  , HandleImage&   OR _setalpha transparency%  we get the same result of fading both for background color both for foreground color.

Thank you for more feedback! It appeared me strange that _setalpha did not work on the whole image... there were 2 obstacles
1. _setalpha must be applied just before _putimage
2. the sintax of _setalpha need a comma to distinguish between color and handleimage.
Reply


Messages In This Thread
RE: No warning to mix screen 0 and screen graphic commands! - by TempodiBasic - 06-16-2023, 11:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Enlarging window for older BAS programs (ie. Screen 7 mode) paulel 5 392 12-24-2025, 09:36 PM
Last Post: paulel
  SCREEN Function CletusSnow 8 814 11-16-2025, 05:09 PM
Last Post: TempodiBasic
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 11 1,055 11-10-2025, 07:23 PM
Last Post: madscijr
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 0 214 10-26-2025, 06:58 PM
Last Post: madscijr
  screen stretch pmackay 5 646 08-23-2025, 05:26 AM
Last Post: pmackay

Forum Jump:


Users browsing this thread: 1 Guest(s)