Share on Google+Share on Google+

php gd Wbmp

Advertisement
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

Advertisements

Advertisement

Posted on: October 31, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.