#include <gint/image.h>
image_t *image_vflip_alloc(image_t const *src)
{
if(!image_valid(src))
return NULL;
image_t *dst = image_alloc(src->width, src->height, src->format);
if(!dst || !image_copy_palette(src, dst, -1)) {
image_free(dst);
}
image_vflip(src, dst, true);
return dst;