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.
This commit is contained in:
Dor Shapira 2022-08-15 13:28:19 +03:00 committed by GitHub
parent f049f9dd3a
commit 95907ef2dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,6 +153,7 @@ int main(void)
{ {
Image image = LoadImageFromTexture(target.texture); Image image = LoadImageFromTexture(target.texture);
ImageFlipVertical(&image); ImageFlipVertical(&image);
ImageCrop(&image, (Rectangle){0, 50, GetScreenWidth(), GetScreenWidth()});
ExportImage(image, "my_amazing_texture_painting.png"); ExportImage(image, "my_amazing_texture_painting.png");
UnloadImage(image); UnloadImage(image);
showSaveMessage = true; showSaveMessage = true;