Skip to content

raylib.LoadImageAnimFromMemory

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Load animated image data - Image.data buffer includes all frames: [image#0][image#1][image#2][...] - Number of frames is returned through 'frames' parameter - All frames are returned in RGBA format - Frames delay data is discarded

Parameters

Parameter Default Value Note
fileType
fileData
frames

Return value

Condition Return Value
(always) map

Notes

Example

data = file.open("explosion.gif").read
result = raylib.LoadImageAnimFromMemory(".gif", data)
print "Frames: " + result.frames
if raylib.IsImageValid(result.image) then
    raylib.UnloadImage result.image
end if

Clone this wiki locally