Skip to content

raylib.ImageDrawRectangleLinesEx

JoeStrout edited this page Oct 17, 2026 · 1 revision

Draw rectangle lines within an image with line thickness

Parameters

Parameter Default Value Note
dst
rec
thick 1
color WHITE

Return value

None.

Notes

Before raylib 6.2, this form was called ImageDrawRectangleLines.

Example

img = raylib.GenImageColor(128, 128, raylib.BLACK)
// Draw a 2px-thick white rectangle outline
raylib.ImageDrawRectangleLinesEx img, [10, 10, 108, 108], 2, raylib.WHITE
raylib.ExportImage img, "rect_outline.png"
raylib.UnloadImage img

Clone this wiki locally