SptCopyRow()

Parent Previous Next

SptCopyRow(bBufferS As bTftLibParameter1, wRowS As wTftLibParameter1, bBufferD As bTftLibParameter2, wRowD As wTftLibParameter2, bTransparent As bTftLibParameter3, wAlphaColor As wTftLibParameter3, bOverlay As bTftLibParameter4), Byte


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


bBufferS – Source buffer.

wRowS – Source row index (0-based).

bBufferD – Destination buffer.

wRowD – Destination row 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 widths differ

4 – Source row index exceeds buffer height

5 – Destination row index exceeds buffer height

Created with the Personal Edition of HelpNDoc: Free PDF documentation generator