Skip to content

raylib.LoadImageFromTexture

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Load image from GPU texture data NOTE: Compressed texture formats not supported

Parameters

Parameter Default Value Note
texture

Return value

Condition Return Value
(always) map

Notes

Example

tex = raylib.LoadTexture("sprite.png")
img = raylib.LoadImageFromTexture(tex)
if raylib.IsImageValid(img) then
    print "Read back image: " + img.width + "x" + img.height
    raylib.UnloadImage img
end if
raylib.UnloadTexture tex

Clone this wiki locally