-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.LoadImageRaw
JoeStrout edited this page Apr 29, 2026
·
3 revisions
Load an image from RAW file data
| Parameter | Default Value | Note |
|---|---|---|
| fileName | ||
| width | ||
| height | ||
| format | ||
| headerSize |
| Condition | Return Value |
|---|---|
| (always) | map |
// Load a 64x64 RGBA raw file with no header
img = raylib.LoadImageRaw("pixels.raw", 64, 64, raylib.PIXELFORMAT_UNCOMPRESSED_R8G8B8A8, 0)
if raylib.IsImageValid(img) then
tex = raylib.LoadTextureFromImage(img)
end if
raylib.UnloadImage img