TftInvTransAreaRect()

Library Description ›› System ››
 visits
Parent Previous Next

Syntax

TftInvTransAreaRect(wOriginX As wTftLibParameter1, wOriginY As wTftLibParameter2, wAreaWidth As wTftLibParameter3, wAreaHeight As wTftLibParameter4, wAlphaColor As wTftLibParameter5)

Overview

Invert the pixels within a defined rectangular area on the TFT screen while applying a transparency mask.

Parameters

Parameter

Description

wOriginX

X-coordinate of the bottom-left corner of the area to be inverted.

wOriginY

Y-coordinate of the bottom-left corner of the area to be inverted.

wAreaWidth

Width of the rectangular region to invert.

wAreaHeight

Height of the rectangular region to invert.

wAlphaColor

Alpha color value used for transparency. Pixels matching this color are excluded from the inversion process.

Notes

The inversion operation is relatively slow, as it requires reading, modifying, and rewriting each pixel within the specified area.

If the global TftPixelCheck flag is enabled, boundary checking is performed:

If the defined area lies completely outside the visible screen region, no inversion is applied.

If the area is partially outside the screen boundaries, it is automatically clipped to the visible display area.

Created with the Personal Edition of HelpNDoc: Free CHM Help documentation generator