Skip to content

raylib.UnloadImage

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Unload image from CPU memory (RAM)

Parameters

Parameter Default Value Note
image

Return value

None.

Notes

Example

img = raylib.LoadImage("sprite.png")
tex = raylib.LoadTextureFromImage(img)
// Free CPU-side image data once uploaded to GPU
raylib.UnloadImage img

Clone this wiki locally