1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <stdio.h>
#include "gd.h"
#include "gdtest.h"
int main()
{
gdImagePtr im;
im = gdImageCreateTrueColor(300, 300);
gdImageSetAntiAliased(im, gdTrueColorAlpha(255, 255, 255, 0));
gdImageLine(im, -1, -1, -1, -1, gdAntiAliased);
gdImageLine(im, 299, 299, 0, 299, gdAntiAliased);
gdImageLine(im, 1,1, 50, 50, gdAntiAliased);
/* Test for segfaults, if we reach this point, the test worked */
gdImageDestroy(im);
return 0;
}
|