Draw a part of an image defined by a rectangle within an image
None.
Draws only the srcRec portion of src, at its original size.
srcRec
src
dst = raylib.GenImageColor(128, 128, raylib.BLACK) sheet = raylib.LoadImage("assets/digits.png") // Copy one 16x16 cell from a sprite sheet raylib.ImageDrawImageRec dst, sheet, [16, 0, 16, 16], [10, 10] raylib.UnloadImage sheet raylib.UnloadImage dst
There was an error while loading. Please reload this page.