b2dGetPixelA

Reads alpha channel from locked image (requires b2dLockImage first, fast CPU buffer access, 0-255). Takes imageHandle (locked image handle, positive integer, must have isLocked=true), x (horizontal pixel coordinate, integer, 0=left edge), y (vertical pixel coordinate, integer, 0=top edge). Returns alpha channel value (0-255 integer, 0=fully transparent, 255=fully opaque), returns 0 on error (not locked, invalid handle, or out-of-bounds coordinates).

2D Overlay

Parameters & Returns

Parameters

imageHandle Int
x Int
y Int

Returns

Int

Quick Summary

Reads alpha channel from locked image (requires b2dLockImage first, fast CPU buffer access, 0-255). Takes imageHandle (locked image handle, positive integer, must have isLocked=true), x (horizontal pixel coordinate, integer, 0=left edge), y (vertical pixel coordinate, integer, 0=top edge). Returns alpha channel value (0-255 integer, 0=fully transparent, 255=fully opaque), returns 0 on error (not locked, invalid handle, or out-of-bounds coordinates).

Technical Exegesis...

Reads alpha channel from locked image (requires b2dLockImage first, fast CPU buffer access, 0-255). Takes imageHandle (locked image handle, positive integer, must have isLocked=true), x (horizontal pixel coordinate, integer, 0=left edge), y (vertical pixel coordinate, integer, 0=top edge). Returns alpha channel value (0-255 integer, 0=fully transparent, 255=fully opaque), returns 0 on error (not locked, invalid handle, or out-of-bounds coordinates). Reads from CPU buffer (img.

Example

Example.bam
; No example implemented yet