PHP.nl

imagebmp

imagebmp

Output a BMP image to browser or file

bool **imagebmp** GdImage $image  $file bool $compressed

Outputs or saves a BMP version of the given . image

filegd.image.path

Opmerking: > null is invalid if the arguments is not used. compressed

compressedWhether the BMP should be compressed with run-length encoding (RLE), or not.

return.success

Voorbeeld: Saving a BMP file

<?php
// Create a blank image and add some text
$im = imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 233, 14, 91);

imagestring($im, 1, 5, 5,  'BMP with PHP', $text_color);

// Save the image
imagebmp($im, 'php.bmp');
?>