-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageDrawText
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw text (default font) within an image (destination)
| Parameter | Default Value | Note |
|---|---|---|
| dst | ||
| text | ||
| posX | 0 | |
| posY | 0 | |
| fontSize | 20 | |
| color | BLACK |
None.
img = raylib.GenImageColor(200, 40, raylib.BLACK)
raylib.ImageDrawText img, "Hello, World!", 5, 5, 20, raylib.WHITE
raylib.ExportImage img, "label.png"
raylib.UnloadImage img