b2dGetImageHandleX

Queries horizontal handle offset (returns stored handleX pivot coordinate). Takes imageHandle (image handle from b2dLoadImage or b2dLoadAnimImage, positive integer). Returns handleX (horizontal offset in pixels, integer, 0 if invalid).

2D Overlay

Parameters & Returns

Parameters

imageHandle Int

Returns

Int

Quick Summary

Queries horizontal handle offset (returns stored handleX pivot coordinate). Takes imageHandle (image handle from b2dLoadImage or b2dLoadAnimImage, positive integer). Returns handleX (horizontal offset in pixels, integer, 0 if invalid).

Technical Exegesis...

Queries horizontal handle offset (returns stored handleX pivot coordinate). Takes imageHandle (image handle from b2dLoadImage or b2dLoadAnimImage, positive integer). Returns handleX (horizontal offset in pixels, integer, 0 if invalid). Reads image.handleX from g_images map (value set by b2dSetImageHandle or b2dSetImageMidHandle). Use to query pivot point (read current handle position), save/restore state (store handle before modifying), or debug positioning (verify handle coordinates).

Example

Example.bam
; No example implemented yet