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.139.86.74
#include "gd.h"
#include <stdio.h>
#include "gdtest.h"
int main()
{
gdImagePtr im, tile;
gdSetErrorMethod(gdSilence);
tile = gdImageCreateTrueColor(10, 10);
gdImageFill(tile, 0, 0, 0xFFFFFF);
gdImageLine(tile, 0,0, 9,9, 0xff0000);
gdImageColorTransparent(tile, 0xFFFFFF);
im = gdImageCreateTrueColor(50, 50);
gdImageFilledRectangle(im, 0, 0, 25, 25, 0x00FF00);
gdImageSetTile(im, tile);
gdImageFilledRectangle(im, 10, 10, 49, 49, gdTiled);
if (!gdAssertImageEqualsToFile("gdtiled/bug00032_exp.png", im)) {
gdImageDestroy(im);
gdImageDestroy(tile);
return 1;
}
gdImageDestroy(im);
gdImageDestroy(tile);
return 0;
}
|