GD ve Resim İşlevleri
PHP Manual

imagebmp

(PHP 7 >= 7.2.0)

imagebmpOutput a BMP image to browser or file

Açıklama

bool imagebmp ( resource $image , mixed $to [, bool $compressed = TRUE ] )

Outputs or saves a BMP version of the given image.

Değiştirgeler

resim

imagecreatetruecolor() gibi bir resim oluşturma işlevinden dönen bir resim verisi.

to

Dosyanın kaydedileceği yer. NULL atanırsa dosyanın içeriği çıktılanır.

compressed

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

Dönen Değerler

Başarı durumunda TRUE, başarısızlık durumunda FALSE döner.

Örnekler

Örnek 1 Saving a BMP file

<?php
// Create a blank image and add some text
$im imagecreatetruecolor(12020);
$text_color imagecolorallocate($im2331491);

imagestring($im155,  'BMP with PHP'$text_color);

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

// Free up memory
imagedestroy($im);
?>


GD ve Resim İşlevleri
PHP Manual