SptMergeRect()

 visits
Parent Previous Next

Syntax

SptMergeRect(bBufferS As bTftLibParameter1, wOriginX As wTftLibParameter1, wOriginY As wTftLibParameter2, wWidth As wTftLibParameter3, wHeight As wTftLibParameter4, bBufferD As bTftLibParameter2, wDestOrgX As wTftLibParameter5, wDestOrgY As wTftLibParameter6, bTransparent As bTftLibParameter3, wAlphaColor As wTftLibParameter7), Byte

Overview

Copies a rectangular region from the source buffer and blends/overlays it onto a specified location in the destination buffer, with optional transparency.

Parameters

Parameter

Description

bBufferS

Source buffer

wOriginX

X-coordinate of the bottom-left corner of the source region

wOriginY

Y-coordinate of the bottom-left corner of the source region

wWidth

Width of the region to copy

wHeight

Height of the region to copy

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 copy (no transparency)
1 = Transparent copy (skip pixels matching the alpha color)

wAlphaColor

Color value treated as transparent when transparency is enabled

Return value

Value

Meaning

0

Success

1

Invalid source buffer

2

Invalid destination buffer

3

Destination area too small

4

Source selection exceeds buffer bounds

Created with the Personal Edition of HelpNDoc: Easily create Web Help sites