Skip to content

raylib.LoadImageAnimFromMemory

JoeStrout edited this page Nov 16, 2026 · 5 revisions

Load animated image data from a RawData; fileType is the extension, e.g. ".gif". Returns a map with 'image' and 'frames' (the frame count). The image's pixel data holds all frames back to back, in RGBA format; frame delays are discarded. The frames argument is ignored

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