-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.LoadImageFromTexture
JoeStrout edited this page Apr 29, 2026
·
3 revisions
Load image from GPU texture data NOTE: Compressed texture formats not supported
| Parameter | Default Value | Note |
|---|---|---|
| texture |
| Condition | Return Value |
|---|---|
| (always) | map |
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