b2dGetImageWidth

Category: 2D Overlay

Syntax:

b2dGetImageWidth:Int(imageHandle:Int)


Parameters

Returns

Int



Summary

Queries image width in pixels (returns full texture width, not frame width for anim images).

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

Returns width in pixels (positive integer, 0 if handle invalid).

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn