mirror of
https://github.com/php/php-src.git
synced 2026-03-25 08:42:29 +01:00
- When building with bundled libgd, it has support for BMP - When building with external libgd, at least 2.1.0 is required, which has BMP support. - The HAVE_GD_PNG moved to PHP_GD_PNG Autoconf macro as it is always required when building with bundled libgd.
18 lines
403 B
PHP
18 lines
403 B
PHP
--TEST--
|
|
imagebmp() - basic functionality
|
|
--EXTENSIONS--
|
|
gd
|
|
--FILE--
|
|
<?php
|
|
// create an image
|
|
$im = imagecreate(100, 100);
|
|
imagecolorallocate($im, 0, 0, 0);
|
|
$white = imagecolorallocate($im, 255, 255, 255);
|
|
imageline($im, 10,10, 89,89, $white);
|
|
imagepalettetotruecolor($im);
|
|
require __DIR__ . "/func.inc";
|
|
test_image_equals_file(__DIR__ . "/imagebmp_basic.png", $im);
|
|
?>
|
|
--EXPECT--
|
|
The images are equal.
|