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:
parent
f049f9dd3a
commit
95907ef2dd
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user