b2dLockImage

Category: 2D Overlay

Syntax:

b2dLockImage:Void(imageHandle:Int)


Parameters

Returns

Void



Summary

Downloads texture to CPU buffer (enables fast GetPixel/SetPixel, GPU->CPU copy, must unlock after).

Takes imageHandle (image handle from b2dLoadImage, b2dCreateRenderTarget, etc, positive integer).

Returns nothing.

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn