-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageFromImage
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Create an image from another image piece
| Parameter | Default Value | Note |
|---|---|---|
| image | ||
| rec |
| Condition | Return Value |
|---|---|
| (always) | map |
img = raylib.LoadImage("spritesheet.png")
// Extract a 64x64 region from the sheet
frame = raylib.ImageFromImage(img, {x:0, y:0, width:64, height:64})
raylib.ExportImage frame, "frame0.png"
raylib.UnloadImage frame
raylib.UnloadImage img