xref: /PHP-8.3/ext/gd/tests/bug77943.phpt (revision a375d547)
1--TEST--
2Bug #77943 (imageantialias($image, false); does not work)
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7require_once __DIR__ . '/func.inc';
8
9$width = 400;
10$height = 300;
11$im = imagecreatetruecolor($width, $height);
12$white = imagecolorallocate($im, 255, 255, 255);
13$blue = imagecolorallocate($im, 0, 0, 255);
14
15imageantialias($im, false);
16imagefilledrectangle($im, 0, 0, $width-1, $height-1, $white);
17
18imageline($im, 0, 0, $width, $height, $blue);
19imagesetthickness($im, 3);
20imageline($im, 10, 0, $width, $height-10, $blue);
21
22test_image_equals_file(__DIR__ . '/bug77943.png', $im);
23?>
24--EXPECT--
25The images are equal.
26