b2dCopyImage

Category: 2D Overlay

Syntax:

b2dCopyImage:Int(imageHandle:Int)


Parameters

Returns

Int



Summary

Creates deep copy of image (GPU->CPU->GPU, fully independent duplicate).

Takes imageHandle (source image handle from b2dLoadImage/b2dLoadAnimImage, positive integer).

Returns new image handle (positive integer for copy, 0 on failure).

View detailed documentation online



Example

Local copiedImage:Int = b2dCopyImage(sourceImage)


BambooBasic © 2026 Michael Denathorn