Crop an image to area defined by a rectangle NOTE: Security checks are performed in case rectangle goes out of bounds
None.
img = raylib.LoadImage("photo.png") // Keep only the top-left 64x64 region raylib.ImageCrop img, {x:0, y:0, width:64, height:64} raylib.ExportImage img, "photo_cropped.png" raylib.UnloadImage img
There was an error while loading. Please reload this page.