Skip to content

raylib.ExportImage

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Export image data to file NOTE: File format depends on fileName extension

Parameters

Parameter Default Value Note
image
fileName

Return value

Condition Return Value
(always) number

Notes

Example

img = raylib.GenImageColor(64, 64, raylib.RED)
raylib.ExportImage img, "red.png"
raylib.UnloadImage img

Clone this wiki locally