-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageDraw
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw an image (source) within an image (destination) NOTE: Color tint is applied to source image
| Parameter | Default Value | Note |
|---|---|---|
| dst | ||
| src | ||
| srcRec | ||
| dstRec | ||
| tint | WHITE |
None.
dst = raylib.GenImageColor(128, 128, raylib.BLACK)
src = raylib.GenImageColor(32, 32, raylib.RED)
srcRec = {x:0, y:0, width:32, height:32}
dstRec = {x:48, y:48, width:32, height:32}
raylib.ImageDraw dst, src, srcRec, dstRec, raylib.WHITE
raylib.UnloadImage src
raylib.ExportImage dst, "composed.png"
raylib.UnloadImage dst