SptGrayScale()

 visits
Parent Previous Next

Syntax

SptGrayScale(bBuffer As bTftLibParameter1, bTransparent As bTftLibParameter2, wAlphaColor As wTftLibParameter1), Byte

Overview

Applies a grayscale filter to a sprite buffer, with optional transparency support.

Parameters

Parameter

Description

bBuffer

Source sprite buffer to be processed.

bTransparent

Transparency mode:
0 – Apply grayscale to all pixels
1 – Skip pixels matching the alpha-key color

wAlphaColor

Alpha-key color used when transparency is enabled.

Return value

Value

Meaning

0

Success

1

Invalid source buffer

Created with the Personal Edition of HelpNDoc: Easily create EPub books