SptCopyCol()

Parent Previous Next

SptCopyCol(bBufferS As bTftLibParameter1, wColS As wTftLibParameter1, bBufferD As bTftLibParameter2, wColD As wTftLibParameter2, bTransparent As bTftLibParameter3, wAlphaColor As wTftLibParameter3, bOverlay As bTftLibParameter4), Byte


Copies a single column from a source buffer to a specified column in a destination buffer, with optional transparency and pixel-overlay effects applied.


bBufferS – Source buffer.

wColS – Source column index (0-based).

bBufferD – Destination buffer.

wColD – Destination column index (0-based).

bTransparent – Transparency mode:

0 – Normal copy (no transparency)

1 – Skip pixels matching the alpha-key color

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

bOverlay – Pixel overlay/blending mode:

0 = NONE – Direct overwrite

1 = OR – Lightens overlaps

2 = AND – Keeps intersecting bits

3 = XOR – Highlights differences

4 = NAND – Inverted AND; bright overlaps

5 = NOR – Inverted OR; darker result

6 = XNOR – Keeps matching pixels

7 = ADD – Adds color values; bright blend

8 = SUB – Subtracts color values; dark blend

9 = AVG – Averages colors; soft blend

10 = SCR – Screen blend; bright highlights

11 = MUL – Multiply blend; darker result

12 = CON – Contrast-enhancing non-linear mix


Result:

0 – Success

1 – Invalid source buffer

2 – Invalid destination buffer

3 – Source and destination buffer heights differ

4 – Source column index exceeds buffer width

5 – Destination column index exceeds buffer width

Created with the Personal Edition of HelpNDoc: Make CHM Help File Creation a Breeze with HelpNDoc