b2dGrabImage

Captures rectangle from active render target (returns new image, requires b2dFlush first, RT only not backbuffer). Takes x1 (left edge of capture region in pixels, integer), y1 (top edge of capture region in pixels, integer), x2 (right edge of capture region in pixels, integer, 0=use full width from x1), y2 (bottom edge of capture region in pixels, integer, 0=use full height from y1). Returns new image handle (positive integer, captured region as new image), returns 0 on failure (invalid RT, empty region, or backbuffer capture attempted).

2D Overlay

Parameters & Returns

Parameters

x1 Int
y1 Int
x2 Int
y2 Int

Returns

Int

Quick Summary

Captures rectangle from active render target (returns new image, requires b2dFlush first, RT only not backbuffer). Takes x1 (left edge of capture region in pixels, integer), y1 (top edge of capture region in pixels, integer), x2 (right edge of capture region in pixels, integer, 0=use full width from x1), y2 (bottom edge of capture region in pixels, integer, 0=use full height from y1). Returns new image handle (positive integer, captured region as new image), returns 0 on failure (invalid RT, empty region, or backbuffer capture attempted).

Technical Exegesis...

Captures rectangle from active render target (returns new image, requires b2dFlush first, RT only not backbuffer). Takes x1 (left edge of capture region in pixels, integer), y1 (top edge of capture region in pixels, integer), x2 (right edge of capture region in pixels, integer, 0=use full width from x1), y2 (bottom edge of capture region in pixels, integer, 0=use full height from y1).

Example

Example.bam
; No example implemented yet