0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.147.49.19


Current Path : /var/www/html/suk_discontinued/libgd-gd-2.2.3/tests/gdimagefilltoborder/
Upload File :
Current File : /var/www/html/suk_discontinued/libgd-gd-2.2.3/tests/gdimagefilltoborder/github_bug_215.c

#include <stdio.h>
#include "gd.h"
#include "gdtest.h"

int main() {
	gdImagePtr im;
	int color, border;
	im = gdImageCreate(50, 50);
	gdImageColorAllocate(im, 255, 0, 0);
	color = gdImageColorAllocate(im, 255, 0, 0);
	border = gdImageColorAllocate(im, 255, 0, 0);
	gdImageFillToBorder(im, 0, 0, border + 10, color);
	gdImageFillToBorder(im, 0, 0, -border, color);
	gdImageFillToBorder(im, 0, 0, border, color + 10);
	gdImageFillToBorder(im, 0, 0, border, -color);
	gdImageFillToBorder(im, 0, 0, border + 10, color + 10);
	gdImageDestroy(im);
	return 0;
}