1
/*ImageFill Pattern fill */
10
int red, blue, white, black, error = 0;
12
im = gdImageCreate(50,100);
13
red = gdImageColorAllocate(im, 255, 0, 0);
14
blue = gdImageColorAllocate(im, 0,0,255);
15
white = gdImageColorAllocate(im, 255,255,255);
16
black = gdImageColorAllocate(im, 0,0,0);
17
gdImageFill(im, 0,0, black);
19
gdImageLine(im, 20,20,180,20, white);
20
gdImageLine(im, 20,20,20,70, blue);
21
gdImageLine(im, 20,70,180,70, red);
22
gdImageLine(im, 180,20,180,45, white);
23
gdImageLine(im, 180,70,180,45, red);
24
gdImageLine(im, 20,20,100,45, blue);
25
gdImageLine(im, 20,70,100,45, blue);
26
gdImageLine(im, 100,45,180,45, red);
28
gdImageFill(im, 21,45, blue);
29
gdImageFill(im, 100,69, red);
30
gdImageFill(im, 100,21, white);
32
if (!gdAssertImageEqualsToFile("bug00002_4_exp.png", im)) {