Category: 2D Overlay
Syntax:
b2dGetPixelG:Int(imageHandle:Int, x:Int, y:Int)
Int
Reads green 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 green channel value (0-255 integer, 0=no green, 255=full green), returns 0 on error (not locked, invalid handle, or out-of-bounds coordinates).
View detailed documentation online
;No example implemented yet
BambooBasic © 2026 Michael Denathorn