TftInvOverTransAreaRect()

Library Description ›› System ››
 visits
Parent Previous Next

Syntax

TftInvOverTransAreaRect(wOriginX As wTftLibParameter1, wOriginY As wTftLibParameter2, wAWidth As wTftLibParameter3, wAHeight As wTftLibParameter4, wAColor As wTftLibParameter5, bOverlay As bTftLibParameter1, wOColor As wTftLibParameter6)

Overview

Invert pixels and apply bitwise overlay processing using an overlay color within a defined rectangular area on the TFT screen, with transparent layer support.

Parameters

Parameter

Description

wOriginX

X-coordinate of the bottom-left corner of the area to invert and overlay

wOriginY

Y-coordinate of the bottom-left corner of the area to invert and overlay

wAWidth

Width of the region to invert and overlay

wAHeight

Height of the region to invert and overlay

wAColor

Alpha color value used for transparent processing

bOverlay

Pixel overlay effect:
0 = NONE - No overlay; direct pixel replacement.
1 = OR - Lightens overlapping areas (adds bits); merges bright regions.
2 = AND - Keeps only common bits; intersection-style effect.
3 = XOR - Highlights differences; toggles pixels where colors differ.
4 = NAND - Inverts the intersection; brightens overlap zones.
5 = NOR - Inverts the union; creates darker overlays.
6 = XNOR - Preserves pixels where both values match; strong masking effect.
7 = ADD - Adds color values; brightens overlapping regions (light addition).
8 = SUB - Subtracts color values; darkens overlaps (shadow-like effect).
9 = AVG - Averages color values; produces a soft blending effect.
10 = SCR - Screen blend (inverse multiply); brightens highlights.
11 = MUL - Multiply blend; darkens overlapping areas (similar to Photoshop “Multiply”).
12 = CON - Contrast blend; enhances midtones using a non-linear mix.

wOColor

Overlay color value used when bitwise overlay processing is applied

Notes

The inversion and overlay operations are relatively slow, as each pixel in the target area must be read, processed, and written back individually.

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

If the area lies completely outside the visible screen, no inversion or overlay is applied.

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

Created with the Personal Edition of HelpNDoc: Simplify Your Help Documentation Process with a Help Authoring Tool