Skip to content

raylib.LoadImageFromScreen

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Load image from screen buffer and (screenshot)

Parameters

None.

Return value

Condition Return Value
(always) map

Notes

Example

// Call after BeginDrawing/EndDrawing to capture the frame
screenshot = raylib.LoadImageFromScreen
if raylib.IsImageValid(screenshot) then
    print "Screenshot captured: " + screenshot.width + "x" + screenshot.height
    raylib.UnloadImage screenshot
end if

Clone this wiki locally