You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Create an image from another image piece
Parameters
Parameter
Default Value
Note
image
rec
Return value
Condition
Return Value
(always)
map
Notes
Example
img=raylib.LoadImage("spritesheet.png")
// Extract a 64x64 region from the sheetframe=raylib.ImageFromImage(img, {x:0, y:0, width:64, height:64})
raylib.ExportImageframe, "frame0.png"raylib.UnloadImageframeraylib.UnloadImageimg