SptFade()

Parent Previous Next

SptFade(bBuffer As bTftLibParameter1, bBrightness As bTftLibParameter2, bTransparent As bTftLibParameter3, wAlphaColor As wTftLibParameter1), Byte


Applies a fade (brightness) effect to a sprite buffer, enabling fade-in or fade-out visuals, with optional transparency support.


bBuffer – Source sprite buffer to be processed.

bBrightness – Brightness level (0–255):

0 – Fully dark (fade out)

255 – Original brightness (no fade)

bTransparent – Transparency mode:

0 – Apply effect to all pixels

1 – Skip pixels matching the alpha-key color

wAlphaColor – Alpha-key color used when transparency is enabled.


Result:

0 – Success

1 – Invalid source buffer

Created with the Personal Edition of HelpNDoc: Free EPub and documentation generator