SptMergeFull()

Parent Previous Next

SptMergeFull(bBufferS As bTftLibParameter1, bTransparent As bTftLibParameter2, wAlphaColor As wTftLibParameter1, bOverlay As bTftLibParameter3, bBufferD As bTftLibParameter4), Byte


Merges two buffers by overlaying the source buffer onto the destination buffer. Optional transparency and pixel blending modes can be applied. The source and destination buffers must have identical dimensions.


bBufferS     - Source buffer

bTransparent - Transparency mode:

0 = Normal rendering (no transparency)

1 = Transparent rendering (skip pixels matching wAlphaColor)

wAlphaColor  - Alpha color value used when transparency is enabled

bOverlay     - Pixel overlay / blending mode:

0  = NONE  - No overlay; direct pixel replacement

1  = OR    - Bitwise OR; lightens overlapping areas

2  = AND   - Bitwise AND; intersection-style effect

3  = XOR   - Bitwise XOR; highlights differences

4  = NAND  - Inverted AND; brightens overlap regions

5  = NOR   - Inverted OR; darkens combined areas

6  = XNOR  - Inverted XOR; strong masking effect

7  = ADD   - Color addition; brightens overlaps

8  = SUB   - Color subtraction; darkens overlaps

9  = AVG   - Color averaging; soft blending effect

10  = SCR   - Screen blend; brightens highlights

11  = MUL   - Multiply blend; darkens overlaps

12  = CON   - Contrast blend; non-linear midtone enhancement

bBufferD     - Destination buffer


Returns:

0 = Success

1 = Invalid source buffer

2 = Invalid destination buffer

3 = Destination buffer size differs from source

Created with the Personal Edition of HelpNDoc: Maximize Your PDF Protection with These Simple Steps