From 95907ef2ddb4d23e348f0d279007b1bad862a3e9 Mon Sep 17 00:00:00 2001 From: Dor Shapira <107134807+sDos280@users.noreply.github.com> Date: Mon, 15 Aug 2022 13:28:19 +0300 Subject: [PATCH] adding a crop to the image When exporting the image there is a little white area in the top that the bar is hiding. the crop remove this little white area. --- examples/textures/textures_mouse_painting.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/textures/textures_mouse_painting.c b/examples/textures/textures_mouse_painting.c index eb6dc480a..35b398f28 100644 --- a/examples/textures/textures_mouse_painting.c +++ b/examples/textures/textures_mouse_painting.c @@ -153,6 +153,7 @@ int main(void) { Image image = LoadImageFromTexture(target.texture); ImageFlipVertical(&image); + ImageCrop(&image, (Rectangle){0, 50, GetScreenWidth(), GetScreenWidth()}); ExportImage(image, "my_amazing_texture_painting.png"); UnloadImage(image); showSaveMessage = true;