TftBaWTransRect()

Library Description ›› System ››
 visits
Parent Previous Next

Syntax

TftBaWTransRect(wOriginX As wTftLibParameter1, wOriginY As wTftLibParameter2, wAreaWidth As wTftLibParameter3, wAreaHeight As wTftLibParameter4, wAlphaColor As wTftLibParameter5, bThreshold As bTftLibParameter1)

Overview

Apply a binary (black and white) threshold filter to a defined rectangular area of the TFT screen, using a transparent layer where specified.

Parameters

Parameter

Description

wOriginX

X-coordinate of the bottom-left corner of the target area

wOriginY

Y-coordinate of the bottom-left corner of the target area

wAreaWidth

Width of the rectangular area to process

wAreaHeight

Height of the rectangular area to process

wAlphaColor

Alpha color value used when transparent processing is enabled

bThreshold

RGB color threshold value:

               - 1 to 48 = use the specified threshold value

               - otherwise = compute and use an automatic average threshold

Notes

The binary threshold filter is relatively slow, as it requires reading and rewriting each pixel in the target area.

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

If the area lies completely outside the visible screen, no processing is applied.

If the area is partially outside the visible screen, it will be clipped to the screen boundaries to prevent out-of-bounds drawing.

Created with the Personal Edition of HelpNDoc: Maximize Your Productivity with a Help Authoring Tool