b2dSaveImage

Saves image to PNG file (reads GPU texture, writes to disk, synchronous operation). Takes imageHandle (image handle from b2dLoadImage, b2dCreateRenderTarget, or b2dGrabImage, positive integer), filePath (output file path, string, .png extension). Returns 1 on success, returns 0 on failure (invalid handle, GPU read error, or file write error).

2D Overlay

Parameters & Returns

Parameters

imageHandle Int
filePath String

Returns

Int

Quick Summary

Saves image to PNG file (reads GPU texture, writes to disk, synchronous operation). Takes imageHandle (image handle from b2dLoadImage, b2dCreateRenderTarget, or b2dGrabImage, positive integer), filePath (output file path, string, .png extension). Returns 1 on success, returns 0 on failure (invalid handle, GPU read error, or file write error).

Technical Exegesis...

Saves image to PNG file (reads GPU texture, writes to disk, synchronous operation). Takes imageHandle (image handle from b2dLoadImage, b2dCreateRenderTarget, or b2dGrabImage, positive integer), filePath (output file path, string, .png extension). Returns 1 on success, returns 0 on failure (invalid handle, GPU read error, or file write error).

Example

Example.bam
; No example implemented yet