← Back to wkappbot-core
wkappbot-core ★★☆

screenshot --mask: transparency outside target rects

Captures union bbox of multiple grap targets, applies 40% alpha outside individual target rects. PNG output with transparency. Evidence images that highlight specific UI nodes.

user/developer

Steps

  1. Capture union bbox of all grap targets (same...
  2. LockBits BGRA pixel walk: pixels outside all...
  3. Pixels inside any target rect stay fully opa...
  4. AllowUnsafeBlocks required for LockBits perf...
  5. Output: # SCREENSHOT path=... rect=L,T,R,B