Skip to content

raylib.LoadImageRaw

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Load an image from RAW file data

Parameters

Parameter Default Value Note
fileName
width
height
format
headerSize

Return value

Condition Return Value
(always) map

Notes

Example

// 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

Clone this wiki locally