SptMergeOver()

 visits
Parent Previous Next

Syntax

SptMergeOver(bBufferS As bTftLibParameter1, bBufferD As bTftLibParameter2, wDestOrgX As wTftLibParameter1, wDestOrgY As wTftLibParameter2, bTransparent As bTftLibParameter3, wAlphaColor As wTftLibParameter3, bOverlay As bTftLibParameter4), Byte

Overview

Merges the source buffer onto a specified region of the destination buffer. The source buffer is overlaid starting at the given destination origin.
Optional transparency and pixel overlay modes can be applied.

Parameters

Parameter

Description

bBufferS

Source buffer

bBufferD

Destination buffer

wDestOrgX

X-coordinate of the bottom-left corner in the destination buffer

wDestOrgY

Y-coordinate of the bottom-left corner in the destination 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 zones
5 = NOR - Inverted OR; creates darker overlays
6 = XNOR - Inverted XOR; strong masking effect
7 = ADD - Color addition; brightens overlapping regions
8 = SUB - Color subtraction; darkens overlapping regions
9 = AVG - Color averaging; soft blending effect
10 = SCR - Screen blend; brightens highlights
11 = MUL - Multiply blend; darkens overlapping areas
12 = CON - Contrast blend; non-linear midtone enhancement

Returns:

0 = Success

1 = Invalid source buffer

2 = Invalid destination buffer

3 = Source buffer does not fit within the destination buffer at the specified position

Notes

The source buffer must fully fit within the destination buffer’s width and height when positioned at (wDestOrgX, wDestOrgY).

Created with the Personal Edition of HelpNDoc: Revolutionize Your Documentation Output with HelpNDoc's Stunning User Interface