You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Oct 17, 2026
·
1 revision
Draw a part of an image defined by a rectangle into destination rectangle, with scaling, within an image NOTE: origin and rotation are currently ignored by raylib
Parameters
Parameter
Default Value
Note
dst
src
srcRec
dstRec
origin
[0, 0]
rotation
0
tint
WHITE
Return value
None.
Notes
Replaces ImageDraw, which was removed in raylib 6.2; with the default origin and rotation it behaves the same. The source rectangle is scaled to fit the destination rectangle.
In raylib 6.2, origin and rotation are accepted but ignored (not yet implemented upstream). To draw a rotated image, use ImageDrawImageEx.