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 : 18.218.123.194
#include "gd.h"
#include <stdio.h>
#include "gdtest.h"
int main()
{
gdImagePtr im;
FILE *fp;
char *file;
int error = 0;
im = gdImageCreateTrueColor(100, 100);
if (im == NULL) {
gdTestErrorMsg("Cannot create image.\n");
return 1;
}
gdImageFill(im, 0, 0, 0xffffff);
gdImageFill(im, 0, 0, 0xffffff);
file = gdTestTempFile("bug00002_1.png");
fp = fopen(file, "wb");
if (fp == NULL) {
gdTestErrorMsg("Cannot create image from <%s>\n", file);
gdImageDestroy(im);
return 1;
}
gdImagePng(im,fp);
fclose(fp);
if (!gdAssertImageEqualsToFile("gdimagefill/bug00002_1_exp.png", im))
error = 1;
gdImageDestroy(im);
return error;
}
|