1--TEST--
2Testing imagetruecolortopalette() of GD library
3--CREDITS--
4Rafael Dohms <rdohms [at] gmail [dot] com>
5--EXTENSIONS--
6gd
7--SKIPIF--
8<?php
9    if (!function_exists("imagecreatetruecolor")) die("skip GD Version not compatible");
10?>
11--FILE--
12<?php
13// Create a 200x100 image
14$image = imagecreatetruecolor(200, 100);
15$white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
16$black = imagecolorallocate($image, 0x00, 0x00, 0x00);
17
18// Set the background to be white
19imagefilledrectangle($image, 0, 0, 299, 99, $white);
20
21// Set the line thickness to 5
22imagesetthickness($image, 5);
23
24// Draw the rectangle
25imagerectangle($image, 14, 14, 185, 85, $black);
26
27include_once __DIR__ . '/func.inc';
28test_image_equals_file(__DIR__ . '/imagesetthickness_basic.png', $image);
29?>
30--EXPECT--
31The images are equal.
32