Home Tutorial Php Phpgd php gd Wbmp

 
 

php gd Wbmp
Posted on: October 31, 2009 at 12:00 AM
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

Related Tags for php gd Wbmp:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.