php gd Wbmp


 

php gd Wbmp

In this tutorial we will know about how to create the wbmp file in php gd.

In this tutorial we will know about how to create the wbmp file in php gd.

<?php

$im = imagecreatetruecolor(120, 20);

$text_color = imagecolorallocate($im, 225, 0, 0);

imagestring($im, 1, 5, 5, 'Roseindia', $text_color);

imagewbmp($im, 'simpletext.wbmp');

echo "Wbmp file created and saved successfully";

imagedestroy($im);

?>

output : Wbmp file created and saved successfully

Ads