b2dSetPixel

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.

2D Overlay

Parameters & Returns

Parameters

imageHandle Int
x Int
y Int
r Int
g Int
b Int
a Int

Returns

Void

Quick 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.

Technical Exegesis...

Writes RGBA pixel to locked image (requires b2dLockImage first, fast CPU buffer write, clamped 0-255).

Example

Example.bam
; No example implemented yet