b2dSetPixel

Category: 2D Overlay

Syntax:

b2dSetPixel:Void(imageHandle:Int, x:Int, y:Int, r:Int, g:Int, b:Int, a:Int)


Parameters

Returns

Void



Summary

Writes RGBA pixel to locked image (requires b2dLockImage first, fast CPU buffer write, clamped 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), r (red channel 0-255, integer, clamped automatically), g (green channel 0-255, integer, clamped automatically), b (blue channel 0-255, integer, clamped automatically), a (alpha channel 0-255, integer, 0=transparent, 255=opaque, clamped automatically).

Returns nothing.

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn