Skip to content

raylib.ImageFormat

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Convert image data to desired format

Parameters

Parameter Default Value Note
image
newFormat

Return value

None.

Notes

Example

img = raylib.LoadImage("photo.png")
// Convert to 32-bit RGBA format
raylib.ImageFormat img, raylib.PIXELFORMAT_UNCOMPRESSED_R8G8B8A8
raylib.ExportImage img, "photo_rgba.png"
raylib.UnloadImage img

Clone this wiki locally