Skip to content

raylib.ImageDrawImage

JoeStrout edited this page Oct 17, 2026 · 1 revision

Draw an image within an image

Parameters

Parameter Default Value Note
dst
src
posX 0
posY 0
tint WHITE

Return value

None.

Notes

Draws all of src at its original size.

Example

dst = raylib.GenImageColor(128, 128, raylib.BLACK)
src = raylib.GenImageColor(32, 32, raylib.RED)
raylib.ImageDrawImage dst, src, 48, 48
raylib.UnloadImage src
raylib.ExportImage dst, "composed.png"
raylib.UnloadImage dst

Clone this wiki locally