-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageFormat
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Convert image data to desired format
| Parameter | Default Value | Note |
|---|---|---|
| image | ||
| newFormat |
None.
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